/*
* Cybernetic Glow - Digital Agency Theme
* Author: Stephanie Wofford Psychology
* Version: 2.0
*/

/* ---------------------------------- */
/*          1. ROOT VARIABLES         */
/* ---------------------------------- */
:root {
    --primary-color: #00ffff;
    /* Cyan */
    --secondary-color: #ff00ff;
    /* Magenta */
    --accent-color: #f0e68c;
    /* Khaki/Light Gold */
    --background-color: #0a0f1e;
    /* Dark Navy Blue */
    --dark-bg-color: #161d31;
    /* Lighter Navy for panels */
    --text-color: #e0e0e0;
    /* Light Grey */
    --light-text-color: #ffffff;
    /* Pure White for Headings */
    --border-color: rgba(0, 255, 255, 0.3);

    --header-height: 80px;

    --font-primary: 'Roboto', sans-serif;
    --font-headings: 'Playfair Display', serif;
    /* Kept for elegance, contrasts well */

    --shadow: 0 5px 25px rgba(0, 255, 255, 0.1);
    --glow-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 15px var(--primary-color);
    --text-glow: 0 0 3px var(--light-text-color), 0 0 5px var(--primary-color);
}

/* ---------------------------------- */
/*          2. GLOBAL RESETS          */
/* ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        linear-gradient(rgba(10, 15, 30, 0.95), rgba(10, 15, 30, 0.95)),
        url('https://www.transparenttextures.com/patterns/cubes.png');
}

body.loading {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    color: var(--light-text-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--light-text-color);
    text-shadow: var(--glow-shadow);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    width: 100%;
}

/* ---------------------------------- */
/*         3. UTILITY CLASSES         */
/* ---------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
}

.section-header .subtitle::before,
.section-header .subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--border-color);
}

.section-header .subtitle::before {
    right: 105%;
}

.section-header .subtitle::after {
    left: 105%;
}

/* ---------------------------------- */
/*           4. PRELOADER             */
/* ---------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: var(--glow-shadow);
    animation: text-glitch 1.5s infinite;
}

@keyframes text-glitch {
    0% {
        text-shadow: var(--glow-shadow);
        opacity: 1;
    }

    48% {
        text-shadow: var(--glow-shadow);
        opacity: 1;
    }

    50% {
        text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color);
        opacity: 0.5;
        transform: translateX(5px);
    }

    52% {
        text-shadow: var(--glow-shadow);
        opacity: 1;
        transform: translateX(0);
    }

    98% {
        text-shadow: var(--glow-shadow);
        opacity: 1;
    }

    100% {
        text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color);
        opacity: 0.7;
        transform: translateX(-5px);
    }
}


/* ---------------------------------- */
/*       5. HEADER & NAVIGATION       */
/* ---------------------------------- */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(10, 15, 30, 0.7);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    background: var(--background-color);
    box-shadow: 0 2px 15px rgba(0, 255, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: var(--light-text-color);
    font-family: var(--font-headings);
    font-size: 1.5rem;
    text-shadow: var(--text-glow);
}

.nav-logo img {
    height: 60px;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: var(--text-color);
    font-family: var(--font-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: var(--glow-shadow);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    cursor: pointer;
    margin-left: 20px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-text-color);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 3px var(--primary-color);
}

/* ---------------------------------- */
/*             6. BUTTONS             */
/* ---------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-family: var(--font-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.btn-primary {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: inset 0 0 0 0 var(--primary-color);
}

.btn-primary:hover {
    color: var(--background-color);
    box-shadow: inset 0 0 50px 0 var(--primary-color);
    text-shadow: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--background-color);
    text-shadow: none;
}

/* ---------------------------------- */
/*           7. HERO SECTION          */
/* ---------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--light-text-color);
    padding-top: var(--header-height);
    background: var(--background-color);
    overflow: hidden;
}

.hero::before {
    /* Scanline effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 15, 30, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    z-index: 1;
    pointer-events: none;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 100vh;
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(10, 15, 30, 0.8), transparent);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    max-width: 55%;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--light-text-color);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
    color: var(--text-color);
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content p {
    animation-delay: 0.4s;
}

.hero-content .btn {
    animation-delay: 0.6s;
}

.hero-3d-object {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3D Object */
.hero-3d-object {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scene {
    width: 200px;
    height: 200px;
    perspective: 800px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color) inset;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light-text-color);
    font-size: 2rem;
    font-family: var(--font-headings);
    text-align: center;
}

.cube-face span {
    font-size: 1rem;
    margin-top: 10px;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cube-face-front {
    transform: rotateY(0deg) translateZ(100px);
}

.cube-face-back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube-face-right {
    transform: rotateY(90deg) translateZ(100px);
}

.cube-face-left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotate-cube {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ---------------------------------- */
/*          8. SERVICES SECTION       */
/* ---------------------------------- */
.services-section {
    background: var(--dark-bg-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    min-height: 350px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    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;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    background: var(--background-color);
    box-shadow: var(--shadow);
    border-radius: 5px;
}

.service-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.service-card-back h3,
.service-card-back p {
    color: var(--light-text-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.service-card-back .btn {
    margin-top: 20px;
    border-color: var(--light-text-color);
    color: var(--light-text-color);
}

.service-card-back .btn:hover {
    background: var(--light-text-color);
    color: var(--secondary-color);
    text-shadow: none;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.service-card:hover .service-icon {
    color: var(--secondary-color);
    filter: drop-shadow(0 0 5px var(--secondary-color));
    transform: scale(1.1);
}

/* ---------------------------------- */
/*           9. ABOUT SECTION         */
/* ---------------------------------- */
.about-section {
    background: var(--background-color);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image-column {
    flex-basis: 45%;
    position: relative;
}

.about-image-column img {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.about-content-column {
    flex-basis: 55%;
}

.about-content-column .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.about-content-column .subtitle {
    color: var(--primary-color);
}

.about-content-column p {
    margin-bottom: 30px;
}

.about-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 50px;
}

/* ---------------------------------- */
/*          10. PROCESS SECTION       */
/* ---------------------------------- */
.process-section {
    background: var(--dark-bg-color);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    box-shadow: var(--glow-shadow);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item .timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    right: -30px;
    top: 15px;
    background-color: var(--primary-color);
    border: 2px solid var(--light-text-color);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--background-color);
    box-shadow: var(--glow-shadow);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -30px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--background-color);
    position: relative;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

/* ---------------------------------- */
/*       11. TESTIMONIALS SECTION     */
/* ---------------------------------- */
.testimonials-section {
    background: var(--background-color);
    padding: 100px 0;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-slide {
    padding: 40px;
    text-align: center;
    background: var(--dark-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-right: 20px;
}

.testimonial-author h4 {
    color: var(--light-text-color);
    margin-bottom: 0;
}

.testimonial-author span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 110%;
    left: -5%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.slider-controls button {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

/* ---------------------------------- */
/*           12. CTA SECTION          */
/* ---------------------------------- */
.cta-section {
    padding: 80px 0;
    background: var(--dark-bg-color);
}

.cta-container {
    text-align: center;
    background: var(--background-color);
    padding: 50px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

/* ---------------------------------- */
/*         13. FOOTER SECTION         */
/* ---------------------------------- */
.footer {
    background: var(--background-color);
    color: var(--text-color);
    padding: 80px 0 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-family: var(--font-headings);
    color: var(--light-text-color);
    margin-bottom: 20px;
    text-shadow: var(--text-glow);
}

.footer-logo img {
    height: 80px;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.footer-about p {
    opacity: 0.8;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    margin-right: 10px;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

.footer h3 {
    color: var(--light-text-color);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-color);
    opacity: 0.8;
}

.footer-links ul li a:hover {
    opacity: 1;
    padding-left: 5px;
    text-shadow: none;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.footer-contact a {
    color: var(--text-color);
    opacity: 0.8;
}

.footer-contact a:hover {
    opacity: 1;
    text-shadow: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0 10px;
}

.footer-legal span {
    opacity: 0.5;
}

/* ---------------------------------- */
/*        14. SCROLL ANIMATIONS       */
/* ---------------------------------- */
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 1s, opacity 1s;
}

.reveal.visible {
    transform: translateY(0);
    opacity: 1;
}

/* ---------------------------------- */
/*      15. BACK TO TOP BUTTON        */
/* ---------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--background-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: var(--glow-shadow);
    transform: translateY(-5px);
}

/* ---------------------------------- */
/*       16. LEGAL/CONTACT PAGES      */
/* ---------------------------------- */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: var(--dark-bg-color);
    color: var(--light-text-color);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
}

.page-header h1 {
    color: var(--light-text-color);
}

.legal-content .content-wrapper,
.page-content {
    background: var(--dark-bg-color);
    padding: 50px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    border-radius: 5px;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-content ul li {
    margin-bottom: 10px;
}

/* Contact Page Specifics */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info-block,
.contact-form-block {
    padding: 40px;
    border: 1px solid var(--border-color);
    background: var(--dark-bg-color);
    border-radius: 5px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 40px;
}

.info-text h4 {
    margin-bottom: 5px;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--background-color);
    font-family: var(--font-primary);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-form button {
    width: 100%;
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--dark-bg-color);
    padding: 40px;
    border-radius: 5px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s;
    border: 1px solid var(--primary-color);
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(var(--glow-shadow));
}

.popup-content h3 {
    margin-bottom: 15px;
}

.popup-content .btn {
    margin-top: 20px;
}

/* ---------------------------------- */
/*        17. RESPONSIVE DESIGN       */
/* ---------------------------------- */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        justify-content: center;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-3d-object {
        display: none;
    }

    .about-container {
        flex-direction: column;
    }

    .process-timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item .timeline-icon {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .slider-controls {
        width: 100%;
        left: 0;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .contact-form .form-row {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        height: auto;
        padding: 120px 0;
    }

    .btn {
        padding: 10px 25px;
    }

    .legal-content .content-wrapper,
    .page-content {
        padding: 30px;
    }
}