/* --- RESET & VARIABLES --- */
:root {
    --primary-dark: #020c1b;
    --secondary-dark: #0a192f;
    --tertiary-dark: #112240;
    --text-main: #8892b0;
    --text-bright: #ccd6f6;
    --accent-cyan: #64ffda;
    --accent-cyan-dim: rgba(100, 255, 218, 0.1);
    --white: #e6f1ff;
    --error: #ff6b6b;
    --success: #00b894;

    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --shadow-card: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --nav-height: 100px;
    --nav-scroll-height: 70px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-bright);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(40px, 8vw, 80px);
}

h2 {
    font-size: clamp(26px, 5vw, 42px);
}

h3 {
    font-size: clamp(20px, 3vw, 28px);
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--accent-cyan);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-cyan);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    color: var(--primary-dark);
}

.btn-secondary {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    border: 1px solid var(--accent-cyan);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--accent-cyan);
}

/* --- CUSTOM CURSOR --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-cyan);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    background-color: rgba(100, 255, 218, 0.05);
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    height: var(--nav-scroll-height);
    background: rgba(10, 25, 47, 0.95);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-bright);
    margin: 0 10px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-cyan);
    margin: 5px 0;
    transition: var(--transition);
}

/* --- HERO SECTION (INDEX) --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    color: var(--text-bright);
    margin-bottom: 30px;
}

.hero p {
    font-size: 18px;
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* --- SERVICES GRID --- */
.services-section {
    background-color: var(--secondary-dark);
}

.section-header {
    margin-bottom: 60px;
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-cyan);
    margin-top: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--tertiary-dark);
    padding: 35px;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-card i {
    font-size: 40px;
    color: var(--accent-cyan);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.service-card p {
    font-size: 15px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* --- ROI CALCULATOR --- */
.calculator-section {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    overflow: hidden;
}

.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--tertiary-dark);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

.calc-controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group label {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    color: var(--text-bright);
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    background: var(--primary-dark);
    height: 8px;
    border-radius: 5px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: pointer;
}

.calc-display {
    background: var(--primary-dark);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--accent-cyan-dim);
}

.result-box {
    margin-bottom: 20px;
}

.result-box span {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-box strong {
    font-size: 48px;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
}

/* --- INDUSTRIES TABS --- */
.industries-section {
    position: relative;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
    background: var(--tertiary-dark);
    padding: 40px;
    border-radius: 8px;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.industry-image img {
    width: 100%;
    border-radius: 5px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.tab-content:hover .industry-image img {
    filter: grayscale(0%);
}

/* --- CONTACT PAGE --- */
.contact-hero {
    padding-top: 150px;
    text-align: center;
    padding-bottom: 50px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info-card {
    background: var(--tertiary-dark);
    padding: 30px;
    border-radius: 8px;
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    color: var(--accent-cyan);
    font-size: 20px;
    margin-top: 5px;
}

.contact-form {
    background: var(--secondary-dark);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: var(--primary-dark);
    border: 1px solid var(--tertiary-dark);
    border-radius: 4px;
    color: var(--text-bright);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* --- LEGAL PAGES LAYOUT --- */
.legal-page-header {
    padding-top: 160px;
    padding-bottom: 60px;
    background: var(--secondary-dark);
    text-align: center;
}

.legal-content {
    background: var(--tertiary-dark);
    padding: 60px;
    border-radius: 8px;
    margin-bottom: 80px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-card);
}

.legal-content h2 {
    color: var(--accent-cyan);
    margin-top: 40px;
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--secondary-dark);
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-bright);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-main);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--tertiary-dark);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links a {
    margin-left: 20px;
    font-size: 12px;
}

/* --- LIVE CHAT WIDGET --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
    animation: pulse 2s infinite;
}

.chat-toggle i {
    color: var(--primary-dark);
    font-size: 24px;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: var(--tertiary-dark);
    border-radius: 10px;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: var(--transition);
    border: 1px solid var(--accent-cyan);
}

.chat-window.active {
    transform: scale(1);
}

.chat-header {
    background: var(--secondary-dark);
    padding: 15px;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
}

.chat-body {
    padding: 20px;
    height: 200px;
    overflow-y: auto;
    font-size: 13px;
}

.chat-msg {
    background: var(--primary-dark);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(100, 255, 218, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background: var(--tertiary-dark);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .tab-content.active {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}