/*
* SparkLab Studios Theme
* Author: AI Assistant
* Version: 1.1 (Animation Fix)
*/

/* -------------------
   1. ROOT & VARIABLES
   ------------------- */
:root {
    --color-yellow: #FEE440;
    --color-blue: #1A75FF;
    --color-purple: #9B5DE5;
    --color-light: #F8F8F8;
    --color-dark: #0F0F23;
    --color-dark-alt: #1a1a3a;
    --color-text: #E0E0E0;
    --color-text-dark: #333;
    --color-gray: #888;
    --color-border: rgba(255, 255, 255, 0.1);

    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Rajdhani', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.6s;
    /* Adjusted for smoother animation */
    --container-width: 1200px;

    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* -------------------
   2. RESET & BASE STYLES
   ------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-dark);
    color: var(--color-text);
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-light);
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

a {
    color: var(--color-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* -------------------
   3. REUSABLE COMPONENTS
   ------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-dark);
    border-color: var(--color-yellow);
}

.btn-primary:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(254, 228, 64, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-light);
    border-color: var(--color-light);
}

.btn-secondary:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.text-center {
    text-align: center;
}

.section-subtitle {
    display: block;
    font-family: var(--font-primary);
    color: var(--color-yellow);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-gray);
}

.highlight-yellow {
    color: var(--color-yellow);
}

.highlight-blue {
    color: var(--color-blue);
}

/* -------------------
   4. HEADER & NAVIGATION
   ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--color-border);
}

.header.scrolled {
    background-color: var(--color-dark);
    box-shadow: var(--shadow-dark);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-light);
}

.logo img {
    height: 80px;
    margin-right: 12px;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
}

.main-nav .nav-link {
    padding: 0 1.2rem;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-light);
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* -------------------
   5. MOBILE MENU
   ------------------- */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--color-light);
    border-radius: 3px;
    position: absolute;
    transition: transform 0.2s ease-in-out, background-color 0.2s;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

.mobile-menu-toggle.is-active .hamburger-inner {
    background-color: transparent;
}

.mobile-menu-toggle.is-active .hamburger-inner::before {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-inner::after {
    transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-dark);
    z-index: 999;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.is-active {
    transform: translateY(0);
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin: 2rem 0;
}

.mobile-nav-link {
    font-size: 1.8rem;
    font-family: var(--font-primary);
    color: var(--color-light);
    padding: 0.5rem 1rem;
}

/* -------------------
   6. HERO SECTION
   ------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle, var(--color-dark-alt) 0%, var(--color-dark) 70%);
    overflow: hidden;
}

#particles-js-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero-text p {
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
    color: var(--color-gray);
}

.hero-buttons .btn {
    margin-right: 1rem;
}

.hero-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-shape {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 30s infinite linear;
}

.shape-face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--color-blue);
    background: rgba(26, 117, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(26, 117, 255, 0.5);
}

.shape-face.front {
    transform: rotateY(0deg) translateZ(150px);
}

.shape-face.back {
    transform: rotateY(180deg) translateZ(150px);
}

.shape-face.right {
    transform: rotateY(90deg) translateZ(150px);
}

.shape-face.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.shape-face.top {
    transform: rotateX(90deg) translateZ(150px);
}

.shape-face.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* -------------------
   7. SERVICES SECTION
   ------------------- */
.services-section {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-dark-alt);
    border: 1px solid var(--color-border);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            rgba(155, 93, 229, 0.3),
            transparent 30%);
    animation: rotate-gradient 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-purple);
    box-shadow: 0 0 30px rgba(155, 93, 229, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-yellow);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-light);
}

.service-card p {
    color: var(--color-gray);
    font-size: 1rem;
}

@keyframes rotate-gradient {
    100% {
        transform: rotate(1turn);
    }
}

/* -------------------
   8. PROCESS SECTION
   ------------------- */
.process-section {
    padding: 6rem 0;
    background-color: var(--color-dark-alt);
    position: relative;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.process-step {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

.process-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.8rem;
    text-align: center;
    background: var(--color-blue);
    color: var(--color-light);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    border: 4px solid var(--color-dark-alt);
}

.process-step:nth-child(odd) .process-icon {
    right: -30px;
}

.process-step:nth-child(even) .process-icon {
    left: -30px;
}

.process-content {
    padding: 1.5rem;
    background: var(--color-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    position: relative;
}

.process-number {
    position: absolute;
    font-size: 4rem;
    font-family: var(--font-primary);
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    top: -1rem;
}

.process-step:nth-child(odd) .process-number {
    right: 1rem;
}

.process-step:nth-child(even) .process-number {
    left: 1rem;
}


.process-content h3 {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.process-content p {
    font-size: 1rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}


/* -------------------
   9. INTERACTIVE REPORT
   ------------------- */
.report-section {
    padding: 6rem 0;
}

.report-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 4rem;
}

.report-dashboard {
    background: linear-gradient(145deg, var(--color-dark-alt), #202048);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-dark);
    position: relative;
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    color: #4ade80;
}

.indicator-light {
    width: 10px;
    height: 10px;
    background-color: #4ade80;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(0.9);
        opacity: 1;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    background-color: rgba(15, 15, 35, 0.5);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-purple);
}

.metric-card h5 {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    font-weight: 900;
}

.metric-trend {
    font-size: 0.9rem;
    font-weight: 700;
}

.metric-trend.up {
    color: #4ade80;
}

.metric-trend.down {
    color: #f87171;
}

.dashboard-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    border-left: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0 0 1rem;
}

.chart-bar {
    flex-grow: 1;
    background: linear-gradient(to top, var(--color-blue), var(--color-purple));
    border-radius: 4px 4px 0 0;
    position: relative;
    animation: grow-bar 1s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.chart-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.chart-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.chart-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.chart-bar:nth-child(5) {
    animation-delay: 0.4s;
}

.chart-bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--color-gray);
}

@keyframes grow-bar {
    to {
        transform: scaleY(1);
    }
}

/* -------------------
   10. INDUSTRIES SECTION
   ------------------- */
.industries-section {
    padding: 6rem 0;
    background: var(--color-dark-alt);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--color-dark);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.industry-item:hover {
    transform: scale(1.05);
    border-color: var(--color-yellow);
    box-shadow: 0 0 20px rgba(254, 228, 64, 0.2);
}

.industry-item i {
    font-size: 3rem;
    color: var(--color-yellow);
    margin-bottom: 1rem;
}

.industry-item span {
    font-family: var(--font-primary);
    font-weight: 600;
}

/* -------------------
   11. TESTIMONIALS SECTION
   ------------------- */
.testimonials-section {
    padding: 6rem 0;
}

.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    min-height: 250px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 2rem;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '“';
    font-family: serif;
    font-size: 5rem;
    color: var(--color-blue);
    position: absolute;
    opacity: 0.3;
}

.testimonial-text::before {
    top: -1.5rem;
    left: 0;
}

.testimonial-text::after {
    content: '”';
    bottom: -4rem;
    right: 0;
}


.testimonial-author {
    margin-top: 1rem;
}

.author-name {
    display: block;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-light);
}

.author-title {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.slider-btn {
    background: var(--color-dark-alt);
    border: 1px solid var(--color-border);
    color: var(--color-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--color-blue);
    border-color: var(--color-blue);
}

/* -------------------
   12. MOCK CHAT WIDGET
   ------------------- */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--color-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-light);
    cursor: pointer;
    box-shadow: var(--shadow-dark);
    transition: transform 0.3s ease;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--color-dark-alt);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-widget.open .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 1rem;
    background: var(--color-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message p {
    background: var(--color-dark);
    padding: 0.8rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin: 0;
    max-width: 80%;
}

.chat-message.bot p {
    border-bottom-left-radius: 3px;
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    display: flex;
}

.chat-footer input {
    flex-grow: 1;
    background: var(--color-dark);
    border: 1px solid var(--color-border);
    color: var(--color-light);
    padding: 0.7rem;
    border-radius: 5px;
    margin-right: 0.5rem;
}

.chat-footer button {
    background: var(--color-blue);
    border: none;
    color: var(--color-light);
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
}


/* -------------------
   13. FOOTER
   ------------------- */
.footer {
    background-color: var(--color-dark-alt);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 1.5rem;
}

.about-col p {
    max-width: 350px;
    color: var(--color-gray);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-yellow);
    color: var(--color-dark);
    border-color: var(--color-yellow);
}

.links-col ul li {
    margin-bottom: 0.8rem;
}

.links-col a {
    color: var(--color-gray);
    font-weight: 500;
}

.links-col a:hover {
    color: var(--color-yellow);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.footer-contact i {
    color: var(--color-yellow);
    margin-right: 1rem;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.footer-legal-links a {
    margin-left: 1.5rem;
    color: var(--color-gray);
}

.footer-legal-links a:hover {
    color: var(--color-light);
}

/* -------------------
   14. CONTACT PAGE
   ------------------- */
.page-header-section {
    padding: 10rem 0 5rem;
    text-align: center;
    position: relative;
    background: radial-gradient(circle, var(--color-dark-alt) 0%, var(--color-dark) 70%);
}

#particles-js-contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

.contact-section-standalone {
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background: var(--color-dark-alt);
    padding: 4rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-yellow);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    text-transform: capitalize;
}

.contact-text p {
    margin: 0;
    color: var(--color-gray);
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-dark);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: var(--color-light);
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--color-gray);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -0.7rem;
    left: 0.8rem;
    font-size: 0.8rem;
    padding: 0 0.2rem;
    background: var(--color-dark-alt);
    color: var(--color-blue);
}

.btn-block {
    width: 100%;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-dark-alt);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 1rem;
}

/* -------------------
   15. LEGAL PAGES
   ------------------- */
.legal-header {
    padding: 8rem 0 4rem;
    background: var(--color-dark-alt);
}

.legal-content {
    padding: 4rem 0;
}

.legal-content .container {
    max-width: 800px;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-yellow);
    border-left: 3px solid var(--color-yellow);
    padding-left: 1rem;
}

.legal-section p,
.legal-section li {
    color: var(--color-gray);
    line-height: 1.8;
}

.legal-section strong {
    color: var(--color-light);
}

/* -------------------
   16. ANIMATIONS (CORRECTED SECTION)
   ------------------- */

/* This is the initial state for all elements that will animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transition: opacity var(--transition-speed) ease-out, transform var(--transition-speed) ease-out;
}

/* Set the starting position based on the data-animation attribute */
.animate-on-scroll[data-animation="fade-up"] {
    transform: translateY(50px);
}

.animate-on-scroll[data-animation="fade-right"] {
    transform: translateX(-50px);
}

.animate-on-scroll[data-animation="fade-left"] {
    transform: translateX(50px);
}

.animate-on-scroll[data-animation="zoom-in"] {
    transform: scale(0.8);
}

/* This is the final, visible state. When .is-visible is added by JS, the element animates to these properties */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
    /* Resets transform to default (translate(0,0), scale(1)) */
}

/* On-load animations (This part was working fine but keeping it for consistency) */
.animate-on-load {
    opacity: 0;
    transition: opacity var(--transition-speed) ease-out, transform var(--transition-speed) ease-out;
}

.animate-on-load.fade-up {
    transform: translateY(50px);
}

.animate-on-load.zoom-in {
    transform: scale(0.8);
}

.animate-on-load.is-visible {
    opacity: 1;
    transform: none;
}


/* -------------------
   17. RESPONSIVENESS
   ------------------- */

/* Tablets and larger */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .report-wrapper {
        grid-template-columns: 1fr;
    }

    .report-text {
        text-align: center;
    }
}

/* Mobile devices */
@media (max-width: 768px) {

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        grid-row: 1;
        margin-bottom: 2rem;
    }

    .hero-3d-shape {
        width: 200px;
        height: 200px;
    }

    .shape-face {
        width: 200px;
        height: 200px;
    }

    .shape-face.front {
        transform: rotateY(0deg) translateZ(100px);
    }

    .shape-face.back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .shape-face.right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .shape-face.left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .shape-face.top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .shape-face.bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    .process-timeline::after {
        left: 30px;
    }

    .process-step {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        text-align: left !important;
    }

    .process-step:nth-child(even) {
        left: 0;
    }

    .process-icon {
        left: 0 !important;
    }

    .process-step:nth-child(odd) .process-number,
    .process-step:nth-child(even) .process-number {
        left: 1rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-col p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}