/* ===================================================
   COMPONENTS.CSS - All Component Styles
   Consolidated from: main.css, profile.css, about.css, 
                      form.css, footer.css, clean-enhancements.css
   =================================================== */

/* =================================================
   1. NAVIGATION
   ================================================= */
#nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 10vh;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    cursor: url(https://cur.cursors-4u.net/cursors/cur-2/cur106.cur), auto !important;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.85);
}

#nav li {
    margin-right: 2%;
}

#nav li:first-child {
    margin-right: auto;
    width: 30%;
}

#title {
    font-size: 2rem;
}

.navLink {
    padding: 8px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navLink::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--highlight-color);
}

.navLink:hover::before {
    width: 80%;
}

.navLink:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.navLink a {
    text-shadow: 0 0 4px rgba(255, 140, 0, 0.3);
}

a span {
    padding: 1%;
    background-color: var(--tertiary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

a span:hover {
    background-color: black;
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--highlight-color);
}

/* Scroll Progress Bar */
#scroll-watcher {
    height: 10px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
    background: linear-gradient(90deg, var(--highlight-color), var(--blue-accent));
    transform-origin: left;
    scale: 0 1;
    animation: scroll-watcher linear;
    animation-timeline: scroll(y);
    box-shadow: 0 0 20px var(--highlight-color);
}

@keyframes scroll-watcher {
    to {
        scale: 1 1;
    }
}

/* =================================================
   2. PROFILE SECTION
   ================================================= */
#profile {
    margin-top: 5vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    gap: 3rem;
    position: relative;
    overflow: hidden;
    padding-bottom: 6rem;
}

/* Floating background elements */
#profile::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid var(--highlight-color);
    border-radius: 50%;
    opacity: 0.1;
    top: 20%;
    left: 10%;
    animation: floatSlow 20s ease-in-out infinite;
}

#profile::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid var(--blue-accent);
    opacity: 0.1;
    top: 60%;
    right: 15%;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-15px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(30px, 10px) rotate(3deg);
    }
}

/* Geometric depth layers */
.depth-layer {
    position: absolute;
    pointer-events: none;
    opacity: 0.05;
}

.depth-layer-1 {
    width: 150px;
    height: 150px;
    border: 2px solid var(--highlight-color);
    top: 10%;
    right: 20%;
    animation: floatSlow 18s ease-in-out infinite;
    transform: rotate(45deg);
}

.depth-layer-2 {
    width: 100px;
    height: 100px;
    border: 2px solid var(--blue-accent);
    bottom: 20%;
    left: 15%;
    animation: floatSlow 22s ease-in-out infinite reverse;
}

.depth-layer-3 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accompany-color);
    top: 50%;
    left: 5%;
    animation: floatSlow 25s ease-in-out infinite;
}

.name {
    width: 100%;
    text-align: center;
    margin: 3rem 0;
}

#profile p {
    margin: 0.5rem 2rem;
}

/* Name with Glitch Effect */
#moses,
#saruni {
    font-family: 'Courier New', monospace;
    color: var(--highlight-color);
    text-shadow:
        0 0 10px var(--highlight-color),
        0 0 20px var(--highlight-color),
        0 0 30px var(--highlight-color);
    background-color: rgba(0, 0, 0, 0.8);
    border: 3px solid var(--complement-color);
    padding: 1.5rem 2.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
    margin: 0 0.5rem;
}

#moses::before,
#moses::after,
#saruni::before,
#saruni::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem 2.5rem;
    background-color: transparent;
    overflow: hidden;
}

#moses::before,
#saruni::before {
    left: 2px;
    text-shadow: -3px 0 var(--accompany-color);
    animation: glitch-anim-1 0.6s infinite linear alternate-reverse;
}

#moses::after,
#saruni::after {
    left: -2px;
    text-shadow: 3px 0 var(--blue-accent);
    animation: glitch-anim-2 0.6s infinite linear alternate-reverse;
}

#moses:hover,
#saruni:hover {
    background-color: var(--complement-color);
    color: var(--primary-color);
    text-shadow: none;
    animation: intenseGlitch 0.3s;
    transform: scale(1.05);
}

/* Terminal/Hobbies Section */
#terminal {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

#hobbies {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 5% 10%;
    overflow: hidden;
}

#hobbies h2 {
    font-size: 4rem;
    line-height: 1;
    margin: 0;
    padding: 0.5rem 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    position: relative;
}

#hobbies h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.5rem;
    height: 2px;
    background-color: var(--highlight-color);
    box-shadow: 0 0 10px var(--highlight-color);
}

#hobbies h2:nth-child(odd) {
    align-self: flex-start;
}

#hobbies h2:nth-child(even) {
    align-self: flex-end;
}

#code {
    color: var(--complement-color);
}

.hobby-item {
    position: relative;
    margin: 0.5rem 0;
    padding-left: 1rem;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(20, end) forwards;
    font-size: 1.2rem;
    color: var(--highlight-color);
    text-shadow: 0 0 8px var(--highlight-color);
}

.hobby-item::before {
    content: '> ';
    color: var(--blue-accent);
}

.hobby-item::after {
    content: '_';
    position: absolute;
    right: 0;
    animation: blink 0.7s infinite;
    color: var(--highlight-color);
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Float icons for skills in profile */
.floatIcon {
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 5px var(--highlight-color));
}

.floatIcon:hover {
    transform: scale(1.3) translateY(-5px);
    filter: drop-shadow(0 0 15px var(--highlight-color));
    color: var(--blue-accent);
}

.floatIcon:nth-child(2n) {
    animation-delay: 0.5s;
}

.floatIcon:nth-child(3n) {
    animation-delay: 1s;
}

.floatIcon:nth-child(4n) {
    animation-delay: 1.5s;
}

/* =================================================
   3. ABOUT SECTION
   ================================================= */
.about-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5rem;
    padding: 6rem 2rem;
    position: relative;
}

/* Section divider */
.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 140, 0, 0.4) 20%,
            rgba(0, 212, 255, 0.4) 50%,
            rgba(255, 140, 0, 0.4) 80%,
            transparent 100%);
}

.personal {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.8;
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.personal .console-text {
    font-size: 1.1rem;
    margin: 1rem 0;
}

.personal,
.professional {
    flex: 1;
}

.professional {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 3rem 0;
}

.professional .console-text {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.personal h3,
.professional h3 {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

/* Skill Icons - Terminal Grid Layout */
.skill-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 400px;
    padding: 1.5rem;
}

.skill-icons i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--complement-color);
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.skill-icons i:hover {
    color: var(--highlight-color);
    border-color: var(--highlight-color);
    background: rgba(var(--highlight-color), 0.05);
    transform: translateY(-4px);
}

/* Skill name tooltip on hover */
.skill-icons i::after {
    content: attr(title);
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    color: var(--highlight-color);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-icons i:hover::after {
    opacity: 1;
}

/* Responsive grid */
@media screen and (max-width: 500px) {
    .skill-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 300px;
    }

    .skill-icons i {
        font-size: 1.6rem;
        padding: 0.8rem;
    }
}

.skill-icons:hover .floatIcon {
    animation: pulse 0.5s ease-in-out;
}

/* =================================================
   4. PROJECTS SECTION
   ================================================= */
.projects-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    padding: 6rem 0;
}

.projects-wrapper::before,
.projects-wrapper::after {
    content: '';
    position: absolute;
    width: 80vw;
    height: 800vh;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, var(--contrast-color) 10%, transparent 30%);
    background-size: 15px 10px;
    opacity: 0.05;
    animation: backgroundMove 10s linear infinite;
    z-index: -1;
}

.projects-wrapper::after {
    top: -45%;
    left: -55%;
    animation-duration: 90s;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-50px, -50px) rotate(360deg);
    }
}

/* Project Title with Glitch */
.projectTitle {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.projectTitle h2 {
    font-size: 5vw;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-shadow:
        0 0 10px var(--highlight-color),
        0 0 20px var(--highlight-color),
        0 0 30px var(--highlight-color);
    letter-spacing: -0.5vw;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    animation: shake 1s infinite;
    animation-timing-function: steps(4, end);
}

.projectTitle h2::before,
.projectTitle h2::after {
    content: 'Projects';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    background: var(--primary-color);
    color: var(--contrast-color);
}

.projectTitle h2::before {
    left: 3px;
    text-shadow: -2px 0 var(--accompany-color);
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.projectTitle h2::after {
    left: -3px;
    text-shadow: 2px 0 var(--blue-accent);
    animation: glitch-2 3s infinite linear alternate-reverse;
}

/* Projects Grid */
#projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    padding: 2rem 0;
}

.project-div {
    min-height: 50vh;
    width: 90%;
    max-width: 1400px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 3vh;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    position: relative;
}

.project-div.reveal {
    opacity: 1;
    transform: translateY(0);
}

.project-div::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
    opacity: 0.3;
}

.project-div:first-child::before {
    display: none;
}

/* Project Details Card */
.project-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 50%;
    margin: 2rem;
    color: var(--contrast-color);
    padding: 2rem;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 140, 0, 0.15);
    border-left: 3px solid var(--highlight-color);
    border-radius: 4px;
    box-shadow: -5px 0 20px rgba(255, 140, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-details:hover {
    background: rgba(0, 0, 0, 0.5);
    border-left-color: var(--blue-accent);
    box-shadow: -5px 0 30px rgba(0, 212, 255, 0.3);
    transform: translateX(-10px);
}

.project-details h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.project-details p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.project-details p:first-of-type {
    color: var(--highlight-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Project Image */
.project-image {
    width: 45%;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow:
        inset 0.5px -0.5px 7px 1.5px var(--highlight-color),
        0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-div.reveal .project-image::before {
    animation: scan 2s ease-out;
}

@keyframes scan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image:hover::after {
    opacity: 1;
}

.project-image:hover {
    transform: scale(0.97);
    box-shadow:
        inset 0.5px -0.5px 10px 3px var(--blue-accent),
        0 15px 50px rgba(0, 212, 255, 0.4);
}

.project-image:hover a {
    opacity: 1;
    transform: translateY(-10px) scale(1.1);
}

.project-link {
    opacity: 0;
    margin-top: 10px;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--highlight-color);
    position: relative;
    z-index: 10;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-link:hover {
    background: var(--highlight-color);
    color: #000;
    box-shadow: 0 0 20px var(--highlight-color);
    transform: translateY(-10px) scale(1.15) !important;
}

/* Placeholder for projects without images */
.project-image.placeholder {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.project-image.placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.project-image.placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid var(--highlight-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

.project-image.placeholder .placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.project-image.placeholder .placeholder-icon {
    font-size: 4rem;
    color: var(--highlight-color);
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

.project-image.placeholder .placeholder-text {
    margin-top: 1rem;
    color: var(--contrast-color);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    opacity: 0.6;
    text-shadow: 0 0 10px var(--highlight-color);
}

/* Parallax Effect */
.parallax-project {
    position: relative;
    overflow: visible;
    transition: transform 0.1s ease-out;
}

/* View All Projects Button */
.view-all-projects {
    text-align: center;
    padding: 4rem 0;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
    color: var(--contrast-color);
    padding: 1.5rem 3rem;
    border: 3px solid var(--highlight-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 30px rgba(255, 140, 0, 0.4);
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.view-all-btn:hover::before {
    left: 100%;
}

.view-all-btn:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 40px rgba(255, 140, 0, 0.6),
        0 0 40px var(--highlight-color);
    border-color: var(--blue-accent);
}

/* =================================================
   5. CONTACT FORM
   ================================================= */
#contact-form {
    padding: 8rem 6rem 6rem;
    margin-top: 4rem;
    color: var(--contrast-color);
    position: relative;
    overflow: hidden;
}

#contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
    animation: scanline-horizontal 3s linear infinite;
}

#contact-form::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.3), transparent);
}

@keyframes scanline-horizontal {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

#contact-form h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--highlight-color);
    position: relative;
}

#contact-form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--highlight-color);
    box-shadow: 0 0 10px var(--highlight-color);
}

#contact-form>p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

#project-inquiry {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    gap: 1.5rem;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 140, 0, 0.1);
}

#project-inquiry input,
#project-inquiry textarea {
    margin-bottom: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 6px;
    color: var(--contrast-color);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#project-inquiry input::placeholder,
#project-inquiry textarea::placeholder {
    color: var(--highlight-color);
    opacity: 0.5;
    font-family: 'Courier New', monospace;
}

#project-inquiry input:focus,
#project-inquiry textarea:focus {
    outline: none;
    border: 1px solid var(--blue-accent);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.9);
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.3),
        inset 0 0 30px rgba(0, 212, 255, 0.1);
    animation: holographic-scan 2s ease-in-out infinite;
}

@keyframes holographic-scan {

    0%,
    100% {
        box-shadow:
            0 0 30px rgba(0, 212, 255, 0.3),
            inset 0 0 30px rgba(0, 212, 255, 0.1);
    }

    50% {
        box-shadow:
            0 0 40px rgba(0, 212, 255, 0.5),
            inset 0 0 40px rgba(0, 212, 255, 0.2);
    }
}

#project-inquiry input:valid:not(:placeholder-shown),
#project-inquiry textarea:valid:not(:placeholder-shown) {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

#project-inquiry input:invalid:not(:placeholder-shown):not(:focus),
#project-inquiry textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: var(--accompany-color);
    animation: shake 0.5s;
}

#project-inquiry button {
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
    color: var(--contrast-color);
    padding: 1.2rem 2rem;
    border: 2px solid var(--highlight-color);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 25px rgba(255, 140, 0, 0.3);
}

#project-inquiry button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

#project-inquiry button:hover::before {
    left: 100%;
}

#project-inquiry button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(255, 140, 0, 0.5),
        0 0 30px var(--highlight-color);
    border-color: var(--blue-accent);
}

#project-inquiry button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(255, 140, 0, 0.3);
}

/* Form success/transmission states */
.transmitting {
    animation: transmission 1s ease-out forwards;
    pointer-events: none;
}

@keyframes transmission {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
}

.transmission-success {
    display: none;
    text-align: center;
    padding: 2rem;
    border: 2px solid #00ff88;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    margin-top: 2rem;
    animation: success-appear 0.5s ease-out;
}

.transmission-success.show {
    display: block;
}

@keyframes success-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transmission-success::before {
    content: '>>> ';
    color: var(--highlight-color);
}

.transmission-success::after {
    content: ' <<<';
    color: var(--highlight-color);
}

/* Budget slider */
.budget-slider {
    margin-bottom: 0;
}

.budget-slider label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--highlight-color);
    font-family: 'Courier New', monospace;
}

#budget {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 10px;
    border-radius: 5px;
    background: var(--secondary-color);
    outline: none;
    border: 1px solid var(--highlight-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#budget:hover {
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

#budget::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--highlight-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--highlight-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#budget::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--highlight-color);
}

#budget::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--highlight-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--highlight-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#budget::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--highlight-color);
}

/* =================================================
   6. FOOTER
   ================================================= */
footer {
    width: 100%;
    padding: 4rem 0 3rem;
    margin-top: 4rem;
    text-align: left;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

.footer-container>div {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer-container>div:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 140, 0, 0.15);
}

.contact-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--contrast-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.contact-item:hover {
    transform: translateX(5px);
    color: var(--highlight-color);
}

.hosted,
.unhosted {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.git-links {
    text-decoration: none;
    color: var(--contrast-color);
    transition: color 0.3s ease;
}

.git-links:hover {
    color: var(--highlight-color);
}

.git-links p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--contrast-color);
}

/* =================================================
   7. PROJECTS PAGE SPECIFIC
   ================================================= */
.projects-page-header {
    margin-top: 15vh;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.projects-page-header h1 {
    font-size: 3rem;
    color: var(--highlight-color);
    text-shadow: 0 0 10px var(--highlight-color);
    margin-bottom: 1rem;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 2rem;
}

.filter-btn {
    background-color: var(--secondary-color);
    border: 2px solid var(--accent-color);
    color: var(--contrast-color);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    text-shadow: 0 0 5px var(--highlight-color);
}

.filter-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.filter-btn.active {
    background-color: var(--highlight-color);
    color: #000;
    border-color: var(--highlight-color);
    text-shadow: none;
}

.projects-grid-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 60vh;
    padding: 2rem 0;
}

#all-projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.back-to-home {
    text-align: center;
    padding: 3rem 0;
}

.back-btn {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    padding: 1rem 2rem;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: #000;
    transform: translateY(-2px);
}

/* =================================================
   8. MOBILE RESPONSIVE STYLES
   ================================================= */
@media screen and (max-width: 800px) {

    /* Navigation */
    #title {
        font-size: 1.8rem;
    }

    /* Profile */
    #profile {
        padding-left: 0;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    #profile p {
        width: 100%;
        margin: 0.5rem 0;
    }

    #hobbies {
        margin-top: 10%;
        padding: auto 0;
    }

    #moses,
    #saruni {
        font-size: 1.8rem;
        padding: 1rem 1.5rem;
        margin: 0.25rem;
    }

    #moses::before,
    #moses::after,
    #saruni::before,
    #saruni::after {
        padding: 1rem 1.5rem;
    }

    /* About */
    .about-content {
        gap: 3rem;
        padding: 4rem 1.5rem;
    }

    .personal {
        width: 95%;
        padding: 1.5rem;
    }

    .skill-icons {
        width: 320px;
        height: 320px;
    }

    .skill-icons::before {
        width: 60px;
        height: 60px;
    }

    .skill-icons::after {
        width: 280px;
        height: 280px;
    }

    .skill-icons i {
        font-size: 2rem;
    }

    /* Projects */
    .projectTitle h2 {
        font-size: 12vw;
    }

    #projects {
        gap: 2rem;
        padding: 1rem 0;
    }

    .project-div {
        min-height: 35vh;
        width: 95%;
        padding: 2vh;
    }

    .project-div::before {
        width: 80%;
    }

    .project-link {
        opacity: 1;
        z-index: 5;
        transform: translateY(5rem) translateX(7rem);
    }

    .project-details {
        display: none;
    }

    .project-image {
        width: 100%;
        min-height: 25vh;
        background-position: center;
        background-size: contain;
    }

    .view-all-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Contact */
    #contact-form {
        padding: 5rem 1.5rem 4rem;
    }

    #contact-form h2 {
        font-size: 2rem;
    }

    #project-inquiry {
        max-width: 100%;
        padding: 1.5rem;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-container>div {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .contact-list {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-item {
        flex-direction: column;
    }

    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    /* Projects Page */
    .projects-page-header h1 {
        font-size: 2rem;
    }

    .filter-container {
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Orbit responsive override */
@media screen and (max-width: 800px) {
    @keyframes orbit {
        0% {
            transform: rotate(0deg) translateX(130px) rotate(0deg);
        }

        100% {
            transform: rotate(360deg) translateX(130px) rotate(-360deg);
        }
    }
}