/*
--- PROJECT LUCID ---
Color Palette:
- Midnight: #0A0F16
- Opal Blue: #80FFF7
- Rose Quartz: #FFB6C1
- Glass BG: rgba(255, 255, 255, 0.05)
- Text Primary: #E0E0E0
- Text Secondary: #A0A0A0
*/

:root {
    --midnight: #0A0F16;
    --opal-blue: #80FFF7;
    --rose-quartz: #FFB6C1;
    --glass-bg: rgba(26, 37, 58, 0.5);
    --glass-border: rgba(128, 255, 247, 0.2);
    --text-primary: #EAEBF0;
    --text-secondary: #a8b2c4;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;
    --header-height: 80px;
}

/* --- General & Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    background-color: var(--midnight);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(128, 255, 247, 0.2);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--opal-blue);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--rose-quartz);
    text-shadow: 0 0 8px var(--rose-quartz);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Animated Background --- */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.3;
}

#glow1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--opal-blue), transparent 60%);
    top: -20%;
    left: -20%;
    animation: drift 25s ease-in-out infinite alternate;
}

#glow2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--rose-quartz), transparent 60%);
    bottom: -30%;
    right: -20%;
    animation: drift 30s ease-in-out infinite alternate-reverse;
}

#glow3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #b6ceff, transparent 60%);
    top: 30%;
    right: 20%;
    animation: drift 35s ease-in-out infinite alternate;
    opacity: 0.2;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

/* --- Glassmorphism Card Style --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(10, 15, 22, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: top 0.3s ease;
}

.header.hidden {
    top: -90px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--opal-blue);
    display: none;
    /* Hidden by default, shown on larger screens */
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--opal-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* --- Mobile Navigation --- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 2rem 0;
}

.mobile-nav a {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--opal-blue), var(--rose-quartz));
    color: var(--midnight);
    border: none;
    box-shadow: 0 0 15px rgba(128, 255, 247, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(128, 255, 247, 0.8);
    transform: translateY(-3px);
    color: var(--midnight);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--opal-blue);
}

.btn-secondary:hover {
    background-color: var(--opal-blue);
    color: var(--midnight);
    box-shadow: 0 0 15px rgba(128, 255, 247, 0.4);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

/* --- Ripple Effect --- */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7);
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(45deg, var(--opal-blue), var(--rose-quartz), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- 3D Crystal --- */
.crystal-container {
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

.crystal {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 20s infinite linear;
}

.crystal .face {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50px;
    left: 50px;
    background: rgba(128, 255, 247, 0.1);
    border: 1px solid var(--opal-blue);
    backdrop-filter: blur(5px);
}

.face.front {
    transform: rotateY(0deg) translateZ(100px);
}

.face.back {
    transform: rotateY(180deg) translateZ(100px);
}

.face.right {
    transform: rotateY(90deg) translateZ(100px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.face.top {
    transform: rotateX(90deg) translateZ(100px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes spin {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


/* --- Shared Section Styles --- */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(10, 15, 22, 0.5), 0 0 20px var(--glass-border);
}

.service-icon {
    font-size: 3rem;
    color: var(--opal-blue);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--opal-blue);
}

.service-title {
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-link {
    font-weight: 600;
    font-family: var(--font-secondary);
    letter-spacing: 1px;
}

.service-link i {
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* --- Intel Section --- */
.intel-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.intel-image-column .intel-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.intel-image-column img {
    display: block;
    width: 100%;
}

.intel-content-column .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.intel-content-column .section-title,
.intel-content-column .section-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.intel-list {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.intel-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.intel-list i {
    color: var(--rose-quartz);
    margin-top: 5px;
}


/* --- Interactive Report Section --- */
.report-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.report-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.report-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.report-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--opal-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.report-tab:hover {
    color: var(--text-primary);
}

.report-tab.active {
    color: var(--opal-blue);
}

.report-tab.active::after {
    transform: scaleX(1);
}

.report-pane {
    display: none;
}

.report-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.metric-card {
    background: rgba(10, 15, 22, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.metric-card h4 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--text-primary);
}

.metric-change {
    font-family: var(--font-secondary);
}

.metric-change.positive {
    color: var(--opal-blue);
}

.metric-change.negative {
    color: var(--rose-quartz);
}

.report-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 250px;
    padding: 1rem;
    margin-top: 2rem;
    background: rgba(10, 15, 22, 0.5);
    border-radius: 10px;
}

.bar {
    width: 15%;
    background: linear-gradient(to top, var(--opal-blue), var(--rose-quartz));
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: height 0.5s ease-out;
}

.bar:hover::after {
    content: attr(data-value);
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--midnight);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--opal-blue);
}

.testimonial-name {
    margin: 0;
}

.testimonial-company {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--opal-blue);
    opacity: 0.5;
}

.testimonial-rating {
    color: var(--rose-quartz);
}

/* --- CTA Section --- */
.cta-section {
    padding: 0;
}

.cta-content {
    background: linear-gradient(135deg, rgba(128, 255, 247, 0.1), rgba(255, 182, 193, 0.1));
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}


/* --- Footer --- */
.footer {
    background-color: #06090f;
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--opal-blue);
    left: -100px;
    bottom: -150px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--rose-quartz);
    right: -100px;
    top: -100px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);

}

.footer-about-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.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-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--midnight);
    background-color: var(--opal-blue);
    border-color: var(--opal-blue);
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--opal-blue);
    margin-top: 5px;
}

.contact-info a {
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Live Chat Widget --- */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--opal-blue), var(--rose-quartz));
    border: none;
    color: var(--midnight);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle .fa-times {
    display: none;
}

.live-chat-widget.open .fa-headset {
    display: none;
}

.live-chat-widget.open .fa-times {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.live-chat-widget.open .chat-window {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    padding: 1rem;
    background: rgba(128, 255, 247, 0.1);
    text-align: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.chat-header p {
    margin: 0;
    font-size: 0.8rem;
}

.chat-body {
    padding: 1rem;
    flex-grow: 1;
    height: 300px;
    overflow-y: auto;
}

.message {
    max-width: 80%;
    margin-bottom: 1rem;
}

.message p {
    padding: 0.7rem 1rem;
    border-radius: 15px;
    margin: 0;
}

.message.received {
    align-self: flex-start;
}

.message.received p {
    background: rgba(10, 15, 22, 0.5);
    border-radius: 15px 15px 15px 0;
}

.chat-footer {
    display: flex;
    padding: 0.5rem;
    border-top: 1px solid var(--glass-border);
}

.chat-footer input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--opal-blue);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}


/* --- Subpage (Legal, Contact) Styles --- */
body.subpage {
    padding-top: var(--header-height);
}

.page-header {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(10, 15, 22, 0.5) 0%, transparent 100%);
}

.page-header h1 {
    font-size: 3.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0 auto;
}

.breadcrumbs {
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--text-primary);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 0.5rem;
}

/* --- Contact Page --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contact-info-panel h2 {
    margin-bottom: 1.5rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.method-icon {
    font-size: 1.8rem;
    color: var(--opal-blue);
    min-width: 40px;
}

.method-details h3 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group .optional {
    opacity: 0.7;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 15, 22, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--opal-blue);
    box-shadow: 0 0 10px rgba(128, 255, 247, 0.3);
}

textarea {
    resize: vertical;
}

.custom-select {
    position: relative;
}

.custom-select::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
    padding: 15px;
}

/* --- Popup --- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 22, 0.7);
    z-index: 1001;
    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 {
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    text-align: center;
    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: 20px;
    font-size: 2rem;
    color: var(--text-secondary);
}

.popup-icon {
    font-size: 4rem;
    color: var(--opal-blue);
    margin-bottom: 1.5rem;
}

.popup-content h3 {
    margin-bottom: 1rem;
}

/* --- Legal Pages --- */
.legal-content-wrapper {
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content-wrapper h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.legal-content-wrapper ul {
    list-style: disc;
    padding-left: 2rem;
}

.legal-content-wrapper ul li {
    margin-bottom: 0.5rem;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.fade-in-up {
    transform: translateY(50px);
}

.animate-on-scroll.fade-in-down {
    transform: translateY(-50px);
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.zoom-in {
    transform: scale(0.9);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* --- Media Queries --- */
@media (min-width: 769px) {
    .logo-text {
        display: block;
    }
}

@media (max-width: 1024px) {

    h1,
    .hero-title {
        font-size: 3rem;
    }

    h2,
    .section-title {
        font-size: 2.2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .intel-wrapper {
        grid-template-columns: 1fr;
    }

    .intel-content-column .section-header {
        text-align: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1,
    .hero-title {
        font-size: 2.5rem;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-toggle.open .bar-top {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-toggle.open .bar-middle {
        opacity: 0;
    }

    .mobile-toggle.open .bar-bottom {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .header-cta {
        display: none;
    }

    section {
        padding: 4rem 0;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {

    h1,
    .hero-title {
        font-size: 2.2rem;
    }

    h2,
    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .crystal-container {
        width: 200px;
        height: 200px;
    }

    .crystal .face {
        width: 150px;
        height: 150px;
        top: 25px;
        left: 25px;
    }

    .face.front {
        transform: rotateY(0deg) translateZ(75px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(75px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(75px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }
}