/*
  styles.css
  Theme: Project NEXUS
  Version: 1.0
  Author: AI Assistant
*/

/* ---------------------------------- */
/*          1. VARIABLES              */
/* ---------------------------------- */
:root {
    --reactor-blue: #00e5ff;
    --deep-graphite: #0a0a0a;
    --graphite-med: #1a1a1a;
    --graphite-light: #2c2c2c;
    --amber-pulse: #ffc107;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --white: #ffffff;
    --black: #000000;
    --success: #28a745;
    --error: #dc3545;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Chakra Petch', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-fast: 0.2s ease-in-out;
    --transition-med: 0.4s ease-in-out;
    --transition-slow: 0.6s ease-in-out;

    --glow-shadow: 0 0 5px var(--reactor-blue), 0 0 10px var(--reactor-blue), 0 0 20px rgba(0, 229, 255, 0.5);
    --amber-glow-shadow: 0 0 5px var(--amber-pulse), 0 0 10px var(--amber-pulse), 0 0 20px rgba(255, 193, 7, 0.5);
}


/* ---------------------------------- */
/*          2. BASE & RESET           */
/* ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--deep-graphite);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--reactor-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-padding-btm {
    padding-bottom: 100px;
}

.text-center {
    text-align: center;
}

/* ---------------------------------- */
/*          3. 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(--reactor-blue);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--reactor-blue);
    opacity: 0.5;
    transition: transform 0.1s ease-out, opacity 0.2s, background-color 0.2s;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    display: block;
}

@media (max-width: 992px) {

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* ---------------------------------- */
/*          4. PRELOADER              */
/* ---------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--deep-graphite);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader-logo-container {
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.preloader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preloader-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--reactor-blue);
    box-shadow: var(--glow-shadow);
    animation: scan 2s infinite linear;
}

.preloader-text {
    margin-top: 20px;
    font-family: var(--font-secondary);
    color: var(--reactor-blue);
    letter-spacing: 2px;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes scan {
    0% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(100px);
    }

    100% {
        transform: translateY(-10px);
    }
}

/* ---------------------------------- */
/*          5. HEADER & NAV           */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    transition: transform var(--transition-med);
}

.logo:hover img {
    transform: scale(1.1) rotate(5deg);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--reactor-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-med);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--reactor-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ---------------------------------- */
/*        5.1 Mobile Menu             */
/* ---------------------------------- */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all var(--transition-med);
    position: absolute;
}

.menu-toggle .bar:nth-child(1) {
    top: 0;
}

.menu-toggle .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle .bar:nth-child(3) {
    bottom: 0;
}

.nav.active+.header-actions .menu-toggle .bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.nav.active+.header-actions .menu-toggle .bar:nth-child(2) {
    opacity: 0;
}

.nav.active+.header-actions .menu-toggle .bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--graphite-med);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding-top: 100px;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-link {
        font-size: 1.2rem;
    }
}

/* ---------------------------------- */
/*          6. BUTTONS                */
/* ---------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-med);
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--reactor-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 1;
}

.btn:hover::before {
    width: 250%;
    height: 250%;
}

/* Primary Button */
.btn-primary {
    background-color: var(--amber-pulse);
    color: var(--deep-graphite);
    border-color: var(--amber-pulse);
}

.btn-primary:hover {
    color: var(--deep-graphite);
    box-shadow: var(--amber-glow-shadow);
}

/* Secondary Button */
.btn-secondary {
    background-color: transparent;
    color: var(--reactor-blue);
    border-color: var(--reactor-blue);
}

.btn-secondary:hover {
    color: var(--deep-graphite);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}


/* ---------------------------------- */
/*          7. HERO SECTION           */
/* ---------------------------------- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(45deg, var(--reactor-blue), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--reactor-blue);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--reactor-blue);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-anim 1.5s infinite;
}

@keyframes scroll-anim {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* ---------------------------------- */
/*       8. MISSION CONSOLE           */
/* ---------------------------------- */
.section-header .section-title {
    color: var(--reactor-blue);
    margin-bottom: 1rem;
}

.section-header .section-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.metric-card {
    background: var(--graphite-med);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--graphite-light);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.metric-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-shadow);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(0, 229, 255, 0.2), transparent 30%);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

.metric-icon {
    font-size: 3rem;
    color: var(--reactor-blue);
    margin-bottom: 20px;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--white);
}

.metric-label {
    color: var(--text-secondary);
    margin-bottom: 0;
}


/* ---------------------------------- */
/*      9. SERVICES ("DEPARTMENTS")   */
/* ---------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--graphite-med);
    border-radius: var(--border-radius);
    border: 1px solid var(--graphite-light);
    perspective: 1000px;
    height: 400px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-10px) rotateY(5deg) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
}

.service-card-front {
    background: var(--graphite-med);
}

.service-card-back {
    background: linear-gradient(45deg, var(--graphite-light), var(--graphite-med));
    transform: rotateY(180deg);
    justify-content: flex-start;
}

.service-card.is-flipped {
    transform: rotateY(180deg);
}

.service-icon {
    font-size: 3rem;
    color: var(--amber-pulse);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    color: var(--white);
}

.service-summary {
    color: var(--text-secondary);
}

.service-features {
    text-align: left;
    margin-top: 15px;
    width: 100%;
}

.service-features li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--reactor-blue);
    position: absolute;
    left: 0;
    top: 2px;
}

/* ---------------------------------- */
/*       10. PROCESS SECTION          */
/* ---------------------------------- */
.process-section {
    background-color: var(--deep-graphite);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 20px 0;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--graphite-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--deep-graphite);
    border: 4px solid var(--reactor-blue);
    top: 35px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 30px;
    background: var(--graphite-med);
    border-radius: var(--border-radius);
    position: relative;
    border: 1px solid var(--graphite-light);
    transition: transform 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: scale(1.05);
}

.timeline-phase {
    font-family: var(--font-secondary);
    color: var(--amber-pulse);
    font-weight: 700;
    letter-spacing: 1px;
}

.timeline-title {
    margin-top: 5px;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

/* ---------------------------------- */
/*       11. INDUSTRIES SECTION       */
/* ---------------------------------- */
.industries-wrapper {
    display: flex;
    margin-top: 50px;
    background: var(--graphite-med);
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 400px;
}

.industry-tabs {
    display: flex;
    flex-direction: column;
    flex-basis: 30%;
    background: var(--graphite-light);
}

.industry-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 20px;
    font-size: 1.1rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background-color var(--transition-med), color var(--transition-med);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid transparent;
}

.industry-tab:hover {
    background: var(--graphite-med);
    color: var(--white);
}

.industry-tab.active {
    background: var(--graphite-med);
    color: var(--reactor-blue);
    border-left-color: var(--reactor-blue);
}

.industry-tab i {
    width: 25px;
    text-align: center;
    font-size: 1.2rem;
}

.industry-content-wrapper {
    flex-basis: 70%;
    padding: 40px;
    position: relative;
}

.industry-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.industry-content.active {
    display: block;
}

.industry-content h3 {
    color: var(--reactor-blue);
}

.industry-content .btn {
    margin-top: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------- */
/*       12. TESTIMONIALS SECTION     */
/* ---------------------------------- */
.testimonials-section {
    background-color: var(--graphite-med);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    z-index: 2;
}

.testimonial-slider {
    position: relative;
    min-height: 250px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(20px);
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 30px;
}

.testimonial-author {
    text-align: center;
}

.author-name {
    color: var(--amber-pulse);
    margin-bottom: 5px;
}

.author-title {
    color: var(--text-secondary);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    background: var(--graphite-light);
    border: 1px solid var(--graphite-light);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.slider-btn:hover {
    background: var(--reactor-blue);
    border-color: var(--reactor-blue);
    color: var(--deep-graphite);
}

/* ---------------------------------- */
/*           13. CTA SECTION          */
/* ---------------------------------- */
.cta-section {
    padding: 50px 0;
}

.cta-wrapper {
    background: linear-gradient(135deg, var(--graphite-med), var(--graphite-light));
    padding: 60px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--reactor-blue);
    box-shadow: var(--glow-shadow);
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.cta-text {
    margin-bottom: 0;
    max-width: 600px;
}


/* ---------------------------------- */
/*           14. FOOTER               */
/* ---------------------------------- */
.footer {
    background: var(--graphite-med);
    padding-top: 80px;
    font-size: 0.9rem;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.footer-column .logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-about-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--graphite-light);
    color: var(--text-primary);
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
    background-color: var(--reactor-blue);
    color: var(--deep-graphite);
    transform: translateY(-5px);
}

.footer-title {
    font-family: var(--font-secondary);
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    text-transform: capitalize;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--amber-pulse);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    transition: color 0.3s, padding-left 0.3s;
    position: relative;
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 10px;
}

.footer-links ul li a::before {
    content: '>';
    position: absolute;
    left: -5px;
    color: var(--reactor-blue);
    opacity: 0;
    transition: opacity 0.3s, left 0.3s;
}

.footer-links ul li a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-secondary);
}

.footer-contact ul li i {
    color: var(--reactor-blue);
    margin-top: 5px;
}

.footer-contact ul li a {
    color: var(--text-secondary);
}

.footer-contact ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--graphite-light);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.footer-bottom ul {
    display: flex;
    gap: 20px;
}

.footer-bottom ul a {
    color: var(--text-secondary);
}

.footer-bottom ul a:hover {
    color: var(--white);
}

/* ---------------------------------- */
/*       15. ANIMATIONS & HELPERS     */
/* ---------------------------------- */
[data-animation] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-load.fade-in-up,
[data-animation="fade-in-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-load,
[data-animation] {
    transform: translateY(30px);
}

[data-animation="zoom-in"].is-visible {
    opacity: 1;
    transform: scale(1);
}

[data-animation="zoom-in"] {
    transform: scale(0.9);
}

[data-animation="slide-in-left"].is-visible,
[data-animation="slide-in-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-animation="slide-in-left"] {
    transform: translateX(-50px);
}

[data-animation="slide-in-right"] {
    transform: translateX(50px);
}

/* ---------------------------------- */
/*          16. CONTACT PAGE          */
/* ---------------------------------- */
.page-header-section {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.8)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
}

.page-header-section h1 {
    font-size: 3.5rem;
    color: var(--white);
}

.page-header-section p {
    font-size: 1.2rem;
    color: var(--text-primary);
    max-width: 700px;
    margin: 1rem auto 0;
}

.contact-page-wrapper {
    display: flex;
    gap: 50px;
    background: var(--graphite-med);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--graphite-light);
}

.contact-info-block,
.contact-form-wrapper {
    flex: 1;
}

.contact-block-title {
    color: var(--reactor-blue);
    margin-bottom: 20px;
}

.contact-details-list {
    margin-top: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-detail-item .icon {
    font-size: 1.5rem;
    color: var(--amber-pulse);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--graphite-light);
    border-radius: 50%;
}

.contact-detail-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-detail-item p,
.contact-detail-item a {
    color: var(--text-secondary);
    margin: 0;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 15px;
    background: var(--deep-graphite);
    border: 1px solid var(--graphite-light);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--reactor-blue);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
}

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='%2300e5ff' 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 15px center;
    background-size: 1em;
}

/* ---------------------------------- */
/*          17. POPUP MODAL           */
/* ---------------------------------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--graphite-med);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.popup-content h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.popup-close-btn {
    margin-top: 20px;
}

/* ---------------------------------- */
/*          18. LEGAL PAGES           */
/* ---------------------------------- */
.legal-page .page-content {
    background: var(--graphite-med);
    padding: 50px;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 0 auto;
}

.legal-page h2 {
    color: var(--reactor-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-page a {
    color: var(--amber-pulse);
    font-weight: 500;
}

/* ---------------------------------- */
/*          19. CHAT WIDGET           */
/* ---------------------------------- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background-color: var(--reactor-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--deep-graphite);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
    transition: transform 0.3s;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--graphite-med);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    transform-origin: bottom right;
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--graphite-light);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.close-chat-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
}

.message p {
    background-color: var(--graphite-light);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    max-width: 80%;
    display: inline-block;
    margin: 0;
    color: var(--text-primary);
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--graphite-light);
}

.chat-footer input {
    flex: 1;
    border: none;
    background: var(--deep-graphite);
    padding: 10px;
    border-radius: var(--border-radius);
    color: var(--text-primary);
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: var(--reactor-blue);
    border: none;
    color: var(--deep-graphite);
    width: 40px;
    border-radius: var(--border-radius);
    margin-left: 10px;
    cursor: pointer;
}

/* ---------------------------------- */
/*          20. RESPONSIVE DESIGN     */
/* ---------------------------------- */
@media (max-width: 1200px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    .section-padding {
        padding: 80px 0;
    }

    .section-padding-btm {
        padding-bottom: 80px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .process-timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .industries-wrapper {
        flex-direction: column;
    }

    .industry-tabs {
        flex-direction: row;
        flex-basis: auto;
        overflow-x: auto;
    }

    .industry-tab {
        border-left: none;
        border-bottom: 4px solid transparent;
    }

    .industry-tab.active {
        border-bottom-color: var(--reactor-blue);
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-page-wrapper {
        flex-direction: column;
        padding: 30px;
    }

    .contact-form .form-row {
        flex-direction: column;
    }

    .footer-main {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .page-header-section {
        padding: 120px 0 60px;
    }

    .page-header-section h1 {
        font-size: 2.5rem;
    }

    .service-card {
        height: auto;
        min-height: 350px;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
}