/*
==================================================
  STARK INDUSTRIES V2 THEME
  MAIN STYLESHEET
==================================================
*/

/* ----------------------------------
   1. VARIABLES & ROOT STYLES
   ---------------------------------- */

:root {
    --reactor-blue: #00e5ff;
    --graphite: #1c1c1c;
    --graphite-light: #2a2a2e;
    --graphite-darker: #111113;
    --white: #fafafa;
    --grey: #a0a0a0;
    --border-color: rgba(0, 229, 255, 0.2);

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.4s ease-in-out;

    --header-height: 80px;
}

/* ----------------------------------
   2. GLOBAL STYLES & RESETS
   ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--graphite-darker);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.5rem;
}

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;
}

.text-gradient {
    background: linear-gradient(90deg, var(--reactor-blue), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* ----------------------------------
   3. LOADER
   ---------------------------------- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--graphite-darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-cube {
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    animation: spin 6s infinite linear;
}

.loader-cube .face {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1px solid var(--reactor-blue);
    background-color: rgba(0, 229, 255, 0.1);
}

.face.front {
    transform: translateZ(25px);
}

.face.back {
    transform: rotateY(180deg) translateZ(25px);
}

.face.right {
    transform: rotateY(90deg) translateZ(25px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(25px);
}

.face.top {
    transform: rotateX(90deg) translateZ(25px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(25px);
}

@keyframes spin {
    from {
        transform: rotateY(0) rotateX(0);
    }

    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

.loader-text {
    margin-top: 2rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    color: var(--reactor-blue);
    text-shadow: 0 0 5px var(--reactor-blue);
    animation: pulse 2s infinite ease-in-out;
}

/* ----------------------------------
   4. HEADER & NAVIGATION
   ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 20px;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(28, 28, 28, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-normal);
}

.logo:hover img {
    
    transform: scale(1.1);
}

.main-nav {
    display: block;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 0;
    position: relative;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--reactor-blue);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--reactor-blue);
}

.header-actions {
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    position: absolute;
    transition: transform 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}


/* Mobile Menu Toggle Active State */
.mobile-menu-toggle.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-inner::before {
    transform: rotate(90deg) translate(-10px, 0);
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-inner::after {
    transform: rotate(-90deg) translate(0px, 0);
    top: 0px;
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Start off-screen */
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.is-active {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
}

.mobile-nav-link.active {
    color: var(--reactor-blue);
}


/* ----------------------------------
   5. BUTTONS & FORMS
   ---------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn span {
    z-index: 2;
}

.btn i {
    z-index: 2;
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background-color: var(--reactor-blue);
    color: var(--graphite-darker);
    border-color: var(--reactor-blue);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--reactor-blue);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: 1;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--reactor-blue);
    color: var(--graphite-darker);
    border-color: var(--reactor-blue);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--graphite);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--reactor-blue);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

textarea {
    resize: vertical;
}


/* ----------------------------------
   6. HERO SECTION
   ---------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(28, 28, 28, 0.8), var(--graphite-darker)), url('https://i.imgur.com/H1JNYYJ.jpeg');
    background-size: cover;
    background-position: center;
    animation: zoomOut 20s linear infinite;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--grey);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Jarvis Waveform */
.hero-waveform {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 50px;
    width: 100%;
    margin-top: 3rem;
}

.hero-waveform span {
    width: 5px;
    background-color: var(--reactor-blue);
    margin: 0 3px;
    display: block;
    animation: waveform 1.5s infinite ease-in-out;
}

.hero-waveform span:nth-child(2) {
    animation-delay: 0.1s;
}

.hero-waveform span:nth-child(3) {
    animation-delay: 0.2s;
}

.hero-waveform span:nth-child(4) {
    animation-delay: 0.3s;
}

.hero-waveform span:nth-child(5) {
    animation-delay: 0.4s;
}

.hero-waveform span:nth-child(6) {
    animation-delay: 0.5s;
}

.hero-waveform span:nth-child(7) {
    animation-delay: 0.6s;
}

.hero-waveform span:nth-child(8) {
    animation-delay: 0.7s;
}

.hero-waveform span:nth-child(9) {
    animation-delay: 0.8s;
}

.hero-waveform span:nth-child(10) {
    animation-delay: 0.9s;
}

.hero-waveform span:nth-child(11) {
    animation-delay: 1.0s;
}

.hero-waveform span:nth-child(12) {
    animation-delay: 1.1s;
}

.hero-waveform span:nth-child(13) {
    animation-delay: 1.2s;
}

.hero-waveform span:nth-child(14) {
    animation-delay: 1.3s;
}

.hero-waveform span:nth-child(15) {
    animation-delay: 1.4s;
}


@keyframes waveform {
    0% {
        height: 5px;
    }

    50% {
        height: 50px;
    }

    100% {
        height: 5px;
    }
}


/* ----------------------------------
   7. SECTION STYLES
   ---------------------------------- */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-heading);
    color: var(--reactor-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    color: var(--grey);
}

/* ----------------------------------
   8. SERVICES SECTION
   ---------------------------------- */
.services-section {
    background-color: var(--graphite);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    aspect-ratio: 1 / 1;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 1px solid var(--border-color);
    background: linear-gradient(145deg, var(--graphite-light), var(--graphite));
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, var(--graphite), var(--reactor-blue));
    color: var(--graphite-darker);
}

.service-card-back h3 {
    color: var(--graphite-darker);
}

.service-icon {
    font-size: 3rem;
    color: var(--reactor-blue);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--grey);
}

.service-card-back p {
    color: var(--graphite-darker);
    font-size: 0.95rem;
    font-weight: 500;
}


/* ----------------------------------
   9. PROCESS SECTION
   ---------------------------------- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* Right Side */
.timeline-item:nth-child(odd) {
    left: 50%;
}

/* Left Side */
.timeline-item:nth-child(even) {
    left: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--graphite-darker);
    border: 4px solid var(--reactor-blue);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--graphite-light);
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 6px;
}

.timeline-step {
    position: absolute;
    top: -20px;
    left: 10px;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

/* ----------------------------------
   10. CORE OFFERINGS / 3D SECTION
   ---------------------------------- */
.core-offerings-section {
    background-color: var(--graphite);
}

.core-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.core-content .section-header {
    text-align: left;
    margin: 0 0 30px 0;
    max-width: 100%;
}

.core-list {
    list-style: none;
}

.core-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.core-list i {
    color: var(--reactor-blue);
    font-size: 1.5rem;
}

/* Hologram Cube */
.core-3d-visual {
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.hologram-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--reactor-blue);
    background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, rgba(0, 229, 255, 0.05) 70%);
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.5);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    gap: 10px;
    font-family: var(--font-heading);
}

.cube-face i {
    font-size: 3rem;
    color: var(--reactor-blue);
    text-shadow: 0 0 10px var(--reactor-blue);
}

.cube-front {
    transform: rotateY(0deg) translateZ(100px);
}

.cube-back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube-right {
    transform: rotateY(90deg) translateZ(100px);
}

.cube-left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube-top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube-bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotate-cube {
    from {
        transform: rotateY(0) rotateX(20deg);
    }

    to {
        transform: rotateY(360deg) rotateX(20deg);
    }
}


/* ----------------------------------
   11. INDUSTRIES SECTION
   ---------------------------------- */

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px;
    width: 180px;
    border: 1px solid var(--border-color);
    background: var(--graphite-light);
    border-radius: 10px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.industry-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.1);
    border-color: var(--reactor-blue);
}

.industry-item i {
    font-size: 3rem;
    color: var(--reactor-blue);
}

.industry-item span {
    font-weight: 700;
}


/* ----------------------------------
   12. TESTIMONIALS SECTION
   ---------------------------------- */
.testimonials-section {
    background: url('https://i.imgur.com/x07l2vj.png') center/cover;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background: rgba(28, 28, 28, 0.7);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    text-align: center;
    overflow: hidden;
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '\201C';
    font-size: 5rem;
    font-family: serif;
    color: var(--reactor-blue);
    position: absolute;
    top: 0px;
    left: -20px;
    opacity: 0.5;
}

.author-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.author-title {
    color: var(--grey);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    background-color: var(--reactor-blue);
    color: var(--graphite-darker);
}


/* ----------------------------------
   13. CTA SECTION
   ---------------------------------- */
.cta-section {
    background: var(--graphite);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
}

.cta-text {
    margin-bottom: 2rem;
    max-width: 500px;
    margin: 0 auto 2rem auto;
    color: var(--grey);
}


/* ----------------------------------
   14. FOOTER
   ---------------------------------- */
.footer {
    background-color: var(--graphite);
    padding: 80px 0 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.about-col p {
    color: var(--grey);
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--grey);
}

.social-link:hover {
    background: var(--reactor-blue);
    border-color: var(--reactor-blue);
    color: var(--graphite-darker);
    transform: translateY(-3px);
}

.links-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.links-col ul a {
    color: var(--grey);
}

.links-col ul a:hover {
    color: var(--reactor-blue);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--grey);
}

.footer-contact li i {
    color: var(--reactor-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--grey);
}

.footer-legal-links a {
    color: var(--grey);
    margin-left: 20px;
}

.footer-legal-links a:hover {
    color: var(--white);
}

/* ----------------------------------
   15. OTHER PAGES (CONTACT, LEGAL)
   ---------------------------------- */

/* Page Header */
.page-header-section {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    background-image: linear-gradient(rgba(28, 28, 28, 0.8), var(--graphite-darker));
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--grey);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Standalone */
.contact-section-standalone {
    padding-top: 100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background-color: var(--graphite);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.contact-info .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--reactor-blue);
    margin-top: 5px;
}

.contact-text p {
    color: var(--grey);
}

.contact-text a {
    color: var(--grey);
}

.contact-text a:hover {
    color: var(--reactor-blue);
}

/* Legal Pages */
.legal-header {
    padding-top: 160px;
    padding-bottom: 80px;
}

.legal-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.8rem;
    color: var(--reactor-blue);
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section p,
.legal-section li {
    color: var(--grey);
}

/* ----------------------------------
   16. POPUP STYLES
   ---------------------------------- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--graphite);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--grey);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--reactor-blue);
    margin-bottom: 1rem;
}

.popup h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.popup p {
    color: var(--grey);
    margin-bottom: 2rem;
}

/* ----------------------------------
   17. ANIMATIONS & SCROLL EFFECTS
   ---------------------------------- */
[data-animation] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animation].is-visible {
    opacity: 1;
    transform: none;
}

[data-animation="fade-in"] {
    transform: translateY(0);
}

[data-animation="fade-up"] {
    transform: translateY(50px);
}

[data-animation="fade-down"] {
    transform: translateY(-50px);
}

[data-animation="fade-right"] {
    transform: translateX(-50px);
}

[data-animation="fade-left"] {
    transform: translateX(50px);
}

[data-animation="zoom-in"] {
    transform: scale(0.9);
}

/* Initial Page Load Animations */
.animate-on-load {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.animate-on-load.fade-up {
    transform: translateY(30px);
}

.animate-on-load.fade-in {
    transform: none;
}


/* ----------------------------------
   18. RESPONSIVE DESIGN
   ---------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .core-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .core-content .section-header {
        text-align: center;
        margin: 0 auto 30px auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .process-timeline::after {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
        left: 0 !important;
    }

    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item::after {
        left: 1px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        aspect-ratio: unset;
        min-height: 280px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}