/*
========================================
    TABLE OF CONTENTS
========================================
1.  VARIABLES & RESET
2.  GENERAL STYLES & UTILITIES
3.  HEADER & NAVIGATION
4.  HERO SECTION
5.  SERVICES SECTION
6.  3D INDUSTRIES CAROUSEL
7.  HOW WE WORK (TIMELINE)
8.  RESULTS DASHBOARD
9.  TESTIMONIALS SECTION
10. CTA SECTION
11. FOOTER
12. PAGE-SPECIFIC STYLES (Contact, Legal)
13. ANIMATIONS & KEYFRAMES
14. RESPONSIVE DESIGN (Media Queries)
========================================
*/

/* ======================================== 1. VARIABLES & RESET ======================================== */
:root {
    /* ===== Colors ===== */
    --gradient: linear-gradient(135deg, #00C6FF, #0072FF);
    --color-bg: #0A0F1C;
    /* Deep blue-black */
    --color-surface: #121828;
    /* Slightly lighter for contrast */
    --color-text: #E6E9EF;
    /* Soft white */
    --color-text-muted: #A0A8C0;
    /* Muted cool gray-blue */
    --color-border: rgba(255, 255, 255, 0.08);

    /* ===== Typography ===== */
    --font-family: 'Inter', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;

    /* ===== Transitions ===== */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;

    /* ===== Layout ===== */
    --container-width: 1200px;
    --border-radius: 10px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);

    /* ===== Effects ===== */
    --glow: 0 0 12px rgba(0, 114, 255, 0.5);
    --blur-surface: blur(12px);
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ======================================== 2. GENERAL STYLES & UTILITIES ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 800;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

p {
    color: var(--color-text-muted);
}

.section-padding {
    padding: 7rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn--primary {
    background: var(--gradient);
    color: var(--color-text);
}

.btn--primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(233, 64, 87, 0.5);
}

.btn--secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    backdrop-filter: blur(5px);
}

.btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn--large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn--full-width {
    width: 100%;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* ======================================== 3. HEADER & NAVIGATION ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-medium);
}

.header.scrolled {
    background-color: rgba(26, 26, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: 45px;
    filter: invert(1);
}

.nav__list {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
    color: #E94057;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* ======================================== 4. HERO SECTION ======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__content {
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero__title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* ======================================== 5. SERVICES SECTION ======================================== */
.services-section {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--transition-medium);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: var(--gradient);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    animation: rotate-glow 5s linear infinite;
}

.service-card:hover .service-card-glow {
    opacity: 0.2;
}

.service-card-content {
    position: relative;
    z-index: 1;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* ======================================== 6. 3D INDUSTRIES CAROUSEL ======================================== */
.industries-section {
    background-color: var(--color-surface);
}

.industry-carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.scene {
    width: 300px;
    height: 200px;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease;
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.front {
    transform: rotateY(0deg) translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(150px);
    width: 200px;
}

.left {
    transform: rotateY(-90deg) translateZ(150px);
    width: 200px;
}

.top {
    transform: rotateX(90deg) translateZ(100px);
    height: 200px;
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
    height: 200px;
}

.carousel-controls {
    display: flex;
    gap: 1rem;
}

.control-btn {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ======================================== 7. HOW WE WORK (TIMELINE) ======================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--gradient);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-bg);
    border: 3px solid #E94057;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--border-radius);
    position: relative;
}

/* ======================================== 8. RESULTS DASHBOARD ======================================== */
.results-dashboard-section {
    background-color: var(--color-surface);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(5px);
}

.kpi-card h4 {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.kpi-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.kpi-period {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ======================================== 9. TESTIMONIALS SECTION ======================================== */
.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    height: 150px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-quote {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-text-muted);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    border-color: #E94057;
    color: #E94057;
}

/* ======================================== 10. CTA SECTION ======================================== */
.cta-section {
    padding: 0;
}

.cta-container {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--color-surface);
    border-radius: var(--border-radius);
}

/* ======================================== 11. FOOTER ======================================== */
.footer {
    background-color: var(--color-surface);
    padding-top: 5rem;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 4rem;
}

.footer-logo img {
    height: 45px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a,
.footer-col p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--color-text);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    text-align: center;
}

/* ======================================== 12. PAGE-SPECIFIC STYLES ======================================== */
/* --- Contact Page --- */
.contact-page {
    padding-top: 8rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-form-container {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E94057;
}

.contact-info-container h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.contact-list {
    list-style: none;
    margin-top: 2rem;
}

.contact-list li {
    margin-bottom: 1rem;
}

.contact-list li strong {
    color: var(--color-text);
}

.contact-list li span {
    color: var(--color-text-muted);
}

/* --- Legal Pages --- */
.legal-section {
    padding-top: 10rem;
}

.legal-container {
    background-color: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 800px;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.legal-container h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #E94057;
}

.legal-container ul {
    list-style: disc;
    padding-left: 1.5rem;
}

/* ======================================== 13. ANIMATIONS & KEYFRAMES ======================================== */
@keyframes rotate-glow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-load,
.animate-on-scroll {
    opacity: 0;
}

.animate-on-load.is-visible,
.animate-on-scroll.is-visible {
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

.is-visible[data-animation="fade-in-up"] {
    animation-name: fade-in-up;
}

.is-visible[data-animation="fade-in-right"] {
    animation-name: fade-in-right;
}

.is-visible[data-animation="fade-in-left"] {
    animation-name: fade-in-left;
}

.is-visible[data-animation="zoom-in"] {
    animation-name: zoom-in;
}

/* ======================================== 14. RESPONSIVE DESIGN ======================================== */
@media (max-width: 1024px) {

    h1,
    .hero__title {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 50px;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 11px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    h1,
    .hero__title {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 5rem 0;
    }

    .header__cta {
        display: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-surface);
        padding-top: 6rem;
        transition: right 0.4s ease-in-out;
    }

    .nav.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav__link {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav.open+.nav-toggle .hamburger {
        background-color: transparent;
    }

    .nav.open+.nav-toggle .hamburger::before {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .nav.open+.nav-toggle .hamburger::after {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}