/*
  PRISM GENESIS THEME
  Author: AI Assistant
  Version: 1.0
  Description: An immersive glass UI with light-splitting holographic typography.
*/

/* 1. ROOT VARIABLES AND GLOBAL RESETS
-------------------------------------------------- */
:root {
    /* Colors */
    --bg-color: #101010;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-cyan: #00ffff;
    --accent-magenta: #ff00ff;
    --accent-violet: #8a2be2;
    --spectrum-gradient: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta), var(--accent-violet));
    --spectrum-gradient-radial: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2), rgba(138, 43, 226, 0.1), transparent 70%);

    /* Glassmorphism UI */
    --glass-bg: rgba(20, 20, 30, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: 15px;
    --glass-radius: 16px;

    /* Typography */
    --font-primary: 'Exo 2', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
}

/* Global Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-magenta);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. SHARED COMPONENTS (HEADER, FOOTER, BUTTONS)
  -------------------------------------------------- */

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-medium), box-shadow var(--transition-medium);
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    transition: transform var(--transition-medium);
}

.logo-link:hover .logo {
    transform: rotate(360deg);
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--spectrum-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navigation */
.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--spectrum-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: white;
    background: var(--spectrum-gradient);
    background-size: 200% 100%;
    transition: background-position 0.5s ease;
}

.btn-primary:hover {
    background-position: -100% 0;
    color: white;
}

.btn-secondary {
    color: var(--text-color);
    background-color: transparent;
    border: 2px solid var(--glass-border);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--spectrum-gradient);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    border-color: transparent;
}

.btn-secondary:hover::before {
    opacity: 1;
}

/* Mobile Navigation Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    position: relative;
    width: 30px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

body.mobile-nav-open .hamburger {
    background-color: transparent;
}

body.mobile-nav-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

body.mobile-nav-open .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Nav Panel */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(16, 16, 16, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

body.mobile-nav-open .mobile-nav {
    transform: translateX(0);
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav nav li {
    margin: 30px 0;
}

.mobile-nav nav a {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: white;
}

/* --- Footer --- */
.footer {
    background-color: #0c0c0c;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: var(--spectrum-gradient-radial);
    opacity: 0.5;
    pointer-events: none;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column .footer-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--spectrum-gradient);
}

.footer-logo-link {
    margin-bottom: 20px;
}

.footer-logo {
    height: 50px;
}

.footer-tagline {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all var(--transition-medium);
}

.social-link:hover {
    color: white;
    border-color: var(--accent-cyan);
    background: var(--accent-cyan);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px var(--accent-cyan);
}

.social-link:nth-child(2):hover {
    background: var(--accent-magenta);
    border-color: var(--accent-magenta);
    box-shadow: 0 0 20px var(--accent-magenta);
}

.social-link:nth-child(3):hover {
    background: var(--accent-violet);
    border-color: var(--accent-violet);
    box-shadow: 0 0 20px var(--accent-violet);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--spectrum-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.contact-list a {
    color: var(--text-muted);
}

.contact-list i {
    margin-top: 5px;
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
}


/* 3. CORE STYLES & EFFECTS
  -------------------------------------------------- */

/* --- Glassmorphism UI --- */
.glass-ui {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
}

/* --- Holographic Text --- */
.holo-text {
    position: relative;
    color: transparent;
    background: var(--spectrum-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    animation: holo-flicker 10s infinite alternate;
}

@keyframes holo-flicker {
    0% {
        text-shadow: 0 0 5px var(--accent-cyan), 0 0 10px var(--accent-magenta);
    }

    50% {
        text-shadow: 0 0 8px var(--accent-magenta), 0 0 15px var(--accent-violet);
    }

    100% {
        text-shadow: 0 0 5px var(--accent-violet), 0 0 10px var(--accent-cyan);
    }
}

/* --- Chromatic Aberration Hover --- */
.chroma-hover {
    position: relative;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.chroma-hover:hover {
    transform: scale(1.02);
}

.chroma-hover::before,
.chroma-hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

.chroma-hover::before {
    color: var(--accent-cyan);
    mix-blend-mode: screen;
}

.chroma-hover::after {
    color: var(--accent-magenta);
    mix-blend-mode: screen;
}

.chroma-hover:hover::before {
    transform: translate(-2px, -1px);
    opacity: 1;
}

.chroma-hover:hover::after {
    transform: translate(2px, 1px);
    opacity: 1;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll[data-animation="fade-up"] {
    transform: translateY(50px);
}

.animate-on-scroll[data-animation="fade-down"] {
    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.9);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* --- Section Styling --- */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}


/* 4. PAGE-SPECIFIC STYLING: INDEX
  -------------------------------------------------- */

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1000px;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.25) 0%, transparent 60%);
    animation: glow-pulse 8s infinite ease-in-out;
}

@keyframes glow-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* 3D Prisms */
.prism-container {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.prism {
    position: absolute;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
}

.prism-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    opacity: 0.2;
}

#prism-1 {
    top: 10%;
    left: 15%;
    animation: prism-rotate 40s infinite linear;
}

#prism-2 {
    top: 60%;
    left: 80%;
    width: 100px;
    height: 100px;
    animation: prism-rotate 30s infinite linear reverse;
}

#prism-3 {
    top: 70%;
    left: 10%;
    width: 50px;
    height: 50px;
    animation: prism-rotate 50s infinite linear;
}

#prism-1 .prism-face,
#prism-2 .prism-face,
#prism-3 .prism-face {
    width: inherit;
    height: inherit;
}

.prism-face:nth-child(1) {
    transform: rotateY(0deg) translateZ(100px);
}

.prism-face:nth-child(2) {
    transform: rotateY(60deg) translateZ(100px);
}

.prism-face:nth-child(3) {
    transform: rotateY(120deg) translateZ(100px);
}

.prism-face:nth-child(4) {
    transform: rotateY(180deg) translateZ(100px);
}

.prism-face:nth-child(5) {
    transform: rotateY(240deg) translateZ(100px);
}

.prism-face:nth-child(6) {
    transform: rotateY(300deg) translateZ(100px);
}

#prism-2 .prism-face:nth-child(1) {
    transform: rotateY(0deg) translateZ(50px);
}

#prism-2 .prism-face:nth-child(2) {
    transform: rotateY(60deg) translateZ(50px);
}

#prism-2 .prism-face:nth-child(3) {
    transform: rotateY(120deg) translateZ(50px);
}

#prism-2 .prism-face:nth-child(4) {
    transform: rotateY(180deg) translateZ(50px);
}

#prism-2 .prism-face:nth-child(5) {
    transform: rotateY(240deg) translateZ(50px);
}

#prism-2 .prism-face:nth-child(6) {
    transform: rotateY(300deg) translateZ(50px);
}

#prism-3 .prism-face:nth-child(1) {
    transform: rotateY(0deg) translateZ(25px);
}

#prism-3 .prism-face:nth-child(2) {
    transform: rotateY(60deg) translateZ(25px);
}

#prism-3 .prism-face:nth-child(3) {
    transform: rotateY(120deg) translateZ(25px);
}

#prism-3 .prism-face:nth-child(4) {
    transform: rotateY(180deg) translateZ(25px);
}

#prism-3 .prism-face:nth-child(5) {
    transform: rotateY(240deg) translateZ(25px);
}

#prism-3 .prism-face:nth-child(6) {
    transform: rotateY(300deg) translateZ(25px);
}


@keyframes prism-rotate {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    padding: 40px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    overflow: hidden;
}

.service-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-cyan), transparent 40%);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-cyan);
}

.service-card:hover .service-card-glow {
    opacity: 0.1;
    transform: scale(1);
}

.service-card:nth-child(2):hover {
    border-color: var(--accent-magenta);
}

.service-card:nth-child(2):hover .service-card-glow {
    background: radial-gradient(circle, var(--accent-magenta), transparent 40%);
}

.service-card:nth-child(3):hover {
    border-color: var(--accent-violet);
}

.service-card:nth-child(3):hover .service-card-glow {
    background: radial-gradient(circle, var(--accent-violet), transparent 40%);
}

.service-card-content {
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--spectrum-gradient);
    color: white;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-features {
    padding-left: 20px;
}

.service-features li {
    color: var(--text-muted);
    margin-bottom: 8px;
    position: relative;
}

.service-features li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: -20px;
    color: var(--accent-cyan);
}

/* --- About Section --- */
.about-section {
    background-color: #0c0c0c;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.stats-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    background: var(--spectrum-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.about-visual {
    position: relative;
    height: 400px;
    perspective: 1200px;
}

.visual-prism-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-prism {
    width: 250px;
    height: 250px;
    transform-style: preserve-3d;
    animation: visual-prism-spin 20s infinite linear;
    position: relative;
}

.visual-prism::before,
.visual-prism::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid;
    border-image-slice: 1;
    border-image-source: var(--spectrum-gradient);
}

.visual-prism::before {
    transform: rotateX(90deg) translateZ(125px);
}

.visual-prism::after {
    transform: rotateY(90deg) translateZ(125px);
}


@keyframes visual-prism-spin {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


/* --- ROI Calculator Section --- */
.calculator-wrapper {
    padding: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.calculator-inputs .form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
}

.form-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    cursor: pointer;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.range-value {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--accent-cyan);
}

.calculator-results {
    border-left: 1px solid var(--glass-border);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-box {
    margin-bottom: 25px;
}

.result-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.result-value {
    display: block;
    font-size: 2.2rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: white;
}

.primary-result .result-value {
    font-size: 3rem;
    background: var(--spectrum-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="M12.5 0 L25 12.5 L12.5 25 L0 12.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M37.5 0 L50 12.5 L37.5 25 L25 12.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M62.5 0 L75 12.5 L62.5 25 L50 12.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M87.5 0 L100 12.5 L87.5 25 L75 12.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M12.5 25 L25 37.5 L12.5 50 L0 37.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M37.5 25 L50 37.5 L37.5 50 L25 37.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M62.5 25 L75 37.5 L62.5 50 L50 37.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M87.5 25 L100 37.5 L87.5 50 L75 37.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M12.5 50 L25 62.5 L12.5 75 L0 62.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M37.5 50 L50 62.5 L37.5 75 L25 62.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M62.5 50 L75 62.5 L62.5 75 L50 62.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M87.5 50 L100 62.5 L87.5 75 L75 62.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M12.5 75 L25 87.5 L12.5 100 L0 87.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M37.5 75 L50 87.5 L37.5 100 L25 87.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M62.5 75 L75 87.5 L62.5 100 L50 87.5 Z" fill="rgba(255,255,255,0.02)"/><path d="M87.5 75 L100 87.5 L87.5 100 L75 87.5 Z" fill="rgba(255,255,255,0.02)"/></svg>')
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    position: relative;
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.testimonial-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--spectrum-gradient-radial);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.testimonial-card:hover .testimonial-glow {
    opacity: 0.5;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-text {
    flex-grow: 1;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.author-title {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(at 20% 20%, var(--accent-cyan) 0px, transparent 50%),
        radial-gradient(at 80% 20%, var(--accent-magenta) 0px, transparent 50%),
        radial-gradient(at 50% 80%, var(--accent-violet) 0px, transparent 50%);
    opacity: 0.1;
    animation: cta-bg-move 20s infinite alternate;
}

@keyframes cta-bg-move {
    0% {
        background-position: 0% 50%, 0% 50%, 0% 50%;
    }

    100% {
        background-position: 100% 50%, 100% 50%, 100% 50%;
    }
}

.cta-container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}


/* 5. PAGE-SPECIFIC STYLING: SUBPAGES
  -------------------------------------------------- */
body.subpage main {
    padding-top: var(--header-height);
}

.page-header {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(12, 12, 12, 1) 0%, var(--bg-color) 100%);
}

.page-title {
    font-size: 4rem;
    margin-bottom: 15px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 20px;
}

.breadcrumbs {
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--accent-cyan);
}

.breadcrumbs i {
    margin: 0 10px;
    font-size: 0.8rem;
}

/* Legal & Content Pages */
.legal-content,
.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.legal-content {
    padding: 40px;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.contact-info-panel,
.contact-form-wrapper {
    padding: 40px;
}

.contact-info-title,
.contact-form-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info-panel p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.method-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--spectrum-gradient);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.method-details p {
    margin: 0;
    color: var(--text-muted);
}

.method-details a {
    color: var(--text-muted);
}

/* Contact Form */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: var(--font-secondary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e0e0e0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.contact-form button {
    width: 100%;
}

/* Submission Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    padding: 40px;
    border-radius: var(--glass-radius);
    text-align: center;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.popup-icon {
    font-size: 4rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.popup h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.popup p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--spectrum-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.live-chat-widget:hover {
    transform: scale(1.1);
}


/* 6. RESPONSIVE DESIGN
  -------------------------------------------------- */

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
    .nav-list {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-nav {
        display: flex;
    }

    .hero-title {
        font-size: 4rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content {
        order: 2;
    }

    .stats-grid {
        justify-content: center;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-results {
        border-left: none;
        border-top: 1px solid var(--glass-border);
        padding-left: 0;
        padding-top: 40px;
        text-align: center;
    }

    .testimonial-slider {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}


/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-group .btn {
        width: 80%;
    }

    .section-padding {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center;
        text-align: left;
    }

}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .contact-info-panel,
    .contact-form-wrapper,
    .legal-content {
        padding: 25px;
    }
}