﻿/* Base styles */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #1A1A1A;
    color: #fff;
    scroll-behavior: smooth;
    /* Visual Polish: Subtle Grid Background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Font Utilities */
.mono-text,
h3,
h4,
.detail-subtitle,
footer,
button,
.card-hover-msg,
.tech-specs,
.fixed-scroll-btn,
.nav-links a,
.section-title,
.portfolio-card h3 {
    font-family: 'Space Mono', monospace;
}

/* Scroll Progress Indicator */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: #FF9900;
    width: 0%;
    z-index: 10002;
    transition: width 0.1s;
}

/* Page Fade Transitions */
body.fade-content {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

body.fade-content.loaded {
    opacity: 1;
}

/* --- HEADER (Redesigned) --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.7) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 153, 0, 0.3);
    padding-top: 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 0;
    border-bottom: 1px solid #FF9900;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Brand */
.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.mobile-logo {
    display: none;
}

header h1 {
    font-size: 1.8rem;
    cursor: pointer;
    margin: 0;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: #fff;
    animation: glitch 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.social-icon {
    padding-top: 5px;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.social-icon:hover svg {
    transform: rotate(360deg) scale(1.3);
    color: #FF9900;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s;
    border: 1px solid transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.nav-links a:hover {
    color: #FF9900;
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.6);
}

.nav-links .home-icon {
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links .home-icon svg {
    width: 20px;
    height: 20px;
}

/* Search bar */
.search-container {
    position: relative;
}

.search-container input {
    padding: 5px 25px 5px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #222;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    width: 120px;
    transition: width 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(5px);
}

.search-container input:focus {
    width: 150px;
    border-color: #FF9900;
    background: #222;
    outline: none;
}

.search-container svg {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    color: #888;
    transition: color 0.3s ease;
}

.search-container input:focus+svg {
    color: #fff;
}

#search-results {
    position: absolute;
    top: 40px;
    right: 0;
    background: #222;
    width: 300px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    border: 1px solid #FF9900;
    border-radius: 5px;
}

/* Mobile Menu (Hidden on Desktop) */
.hamburger-btn {
    display: none;
    cursor: pointer;
}

.hamburger-btn svg {
    width: 30px;
    height: 30px;
    color: #fff;
    transition: color 0.3s;
}

.hamburger-btn:hover svg {
    color: #FF9900;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100%;
    background: rgba(26, 26, 26, 0.98);
    z-index: 2000;
    transition: right 0.3s ease;
    padding-top: 75px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-left: 1px solid #FF9900;
}

.side-menu.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #FF9900;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.mobile-nav-links a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #fff;
    transition: 0.3s;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    font-weight: 700;
}

.mobile-nav-links a:hover {
    color: #FF9900;
}

/* --- HOMEPAGE REDESIGN --- */

/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

/* Hide mobile click message by default */
.mobile-click-msg {
    display: none;
}

.background-container .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6);
}

.background-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

/* Portfolio Section */
.portfolio-section {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 100px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.title-line-1 {
    font-size: 2rem;
    text-transform: none;
}

.title-line-2 {
    font-size: 2.5rem;
}


/* Portfolio Header */
.portfolio-header {
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
  /*  text-decoration: underline; */
    text-underline-offset: 8px;
    text-align: center;
    color: #FF9900;
    font-weight: 700;
    font-size: 2rem;
    /* Match card text size */
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.homepage-description {
    text-align: center;
    max-width: 800px;
    margin: 30px auto 40px;
    padding: 0 20px;
}

.homepage-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 30px;
}

.explore-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #FF9900;
    color: #FF9900;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.explore-btn:hover {
    background: #fff;
    color: #1A1A1A;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.4);
}

.portfolio-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.portfolio-card .card-image-default {
    opacity: 1;
    z-index: 1;
}

.portfolio-card .card-image-hover {
    opacity: 0;
    z-index: 2;
}

.portfolio-card:hover .card-image-default {
    opacity: 0;
}

.portfolio-card:hover .card-image-hover {
    opacity: 1;
}


.portfolio-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    transition: background 0.3s ease;
    z-index: 3;
}

.portfolio-card h3 {
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, color 0.3s ease;
    margin: 0;
}

/* Hover Effects */
.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: #FF9900;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-card:hover .card-overlay {
    background: none;
}

.portfolio-card:hover h3 {
    color: #FF9900;
    transform: scale(1.1);
}

/* --- EXISTING STYLES (Preserved) --- */

/* Content Layer (Projects & Footer) */
.content-layer {
    position: relative;
    z-index: 10;
    background-color: #1A1A1A;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.projects {
    min-height: 80vh;
}

.projects h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 2px solid #FF9900;
    padding-bottom: 5px;
    color: #FF9900;
}

/* Filter System */
.filter-container {
    max-width: 1000px;
    margin: 0 auto 30px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

#filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    background: #262626;
    border: 1px solid #555;
    color: #ccc;
    padding: 8px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 4px;
}

.filter-btn:hover {
    background: #333;
    border-color: #777;
    color: #fff;
}

.filter-btn.active {
    background: #FF9900;
    border-color: #FF9900;
    color: #1A1A1A;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.5);
}

.reset-btn {
    background: transparent;
    border: 1px dashed #A00000;
    color: #A00000;
    font-weight: bold;
    margin-left: 10px;
}

.reset-btn:hover {
    background: rgba(255, 0, 0, 0.05);
    border-color: #FF0000;
    color: #FF0000;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

/* Project Grid (Projects Page) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.project-card {
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
    border-top: 3px solid #FF9900;
}

/* Hide mobile click message by default */
.mobile-click-msg {
    display: none;
}

.project-card:hover {
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.5);
}

.flip-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    overflow: hidden;
}

/* Hide mobile click message by default */
.mobile-click-msg {
    display: none;
}

.front,
.back-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Hide mobile click message by default */
.mobile-click-msg {
    display: none;
}

.front img,
.back-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.back-img {
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.project-card:hover .back-img {
    opacity: 1;
}

.project-card:hover .back-img img {
    transform: scale(1.05);
}

.project-card .card-content {
    padding: 15px;
    position: relative;
    min-height: 120px;
}

.card-text-default {
    transition: opacity 0.3s;
    opacity: 1;
}

.project-card:hover .card-text-default {
    opacity: 0;
}

.card-hover-msg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    font-weight: 900;
    color: #FF9900;
    font-size: 1.1rem;
    text-transform: uppercase;
    line-height: 1.4;
}

.project-card:hover .card-hover-msg {
    opacity: 1;
}

.project-card h4 {
    font-weight: 700;
    text-transform: uppercase;
    color: #FF9900;
    margin-bottom: 5px;
}

.project-card p {
    font-size: 0.85rem;
    color: #ccc;
}

.clamp-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hide mobile click message by default */
.mobile-click-msg {
    display: none;
}

/* About & Contact */
.about {
    padding: 20px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about h3,
.contact h3 {
    font-size: 2rem;
    color: #FF9900;
    margin-bottom: 20px;
}

.about p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.about p strong {
    font-weight: 700;
    color: #FF9900;
}

.contact {
    padding: 20px 20px;
    padding-bottom: 2px;
    text-align: center;
}

.contact a {
    display: inline-block;
    color: #FF9900;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid #FF9900;
    padding-bottom: 2px;
    transition: 0.3s;
}

.contact a:hover {
    color: #fff;
    border-color: #fff;
}

.follow h5 {
    font-size: 1.5rem;
    color: #FF9900;
    margin-bottom: 10px;
}

.follow {
    padding: 1px 21px;
    padding-bottom: 0px;
    margin-bottom: 0px;
    text-align: center;
}

/* Social Buttons Container */
.social-buttons-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 0px 20px;
    flex-wrap: wrap;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-button:hover {
    transform: translateY(-5px);
}

.social-button svg {
    width: 24px;
    height: 24px;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.social-tag-img {
    height: 21px;
    width: auto;
    filter: brightness(0) invert(1);
}

.instagram-button {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%);
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.4);
}

.instagram-button:hover {
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.6);
}

.instagram-button:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.youtube-button {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.youtube-button:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6);
}

.youtube-button:hover svg {
    transform: rotate(-15deg) scale(1.1);
}


footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #FF9900;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 50px;
    background: #1A1A1A;
    flex-shrink: 0;
}

/* --- PROJECT DETAIL PAGE --- */
.project-detail-page {
    padding-top: 120px;
    padding-bottom: 50px;
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.detail-subtitle {
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.detail-title {
    font-size: 3rem;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(90deg, #fff, #FF9900);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
}

.detail-hero {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #FF9900;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(255, 153, 0, 0.2);
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px auto;
}

.detail-info {
    border-left: 3px solid #FF9900;
    padding-left: 20px;
}

.detail-info h3,
.tech-specs h3 {
    color: #FF9900;
    margin-top: 0;
    font-size: 1.2rem;
}

.detail-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
}

.tech-specs {
    background: #222;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #333;
}

.tech-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-specs li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #444;
    padding-bottom: 5px;
    font-size: 0.9rem;
    color: #ccc;
}

.tech-specs li span {
    color: #FF9900;
    font-weight: bold;
    margin-right: 5px;
}

.video-section {
    max-width: 1000px;
    margin: 0 auto 60px auto;
}

.video-section h3 {
    color: #FF9900;
    font-family: 'Space Mono';
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #333;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fixed-scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 60px;
    background: #FF9900;
    color: #1A1A1A;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fixed-scroll-btn:hover {
    transform: translateY(3px);
    box-shadow: 0 0 25px rgba(255, 153, 0, 0.6);
}

.fixed-scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.fixed-scroll-btn svg {
    width: 30px;
    height: 30px;
    fill: #1A1A1A;
}

.detail-gallery {
    scroll-margin-top: 100px;
}

.detail-gallery h3 {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    color: #888;
    margin-bottom: 20px;
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #333;
    transition: border-color 0.3s;
}

.gallery-item:hover {
    border-color: #FF9900;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid #FF9900;
    box-shadow: 0 0 30px rgba(255, 153, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}


/* Responsive */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .portfolio-card {
        height: 150px;
    }

    .portfolio-card h3 {
        font-size: 1.1rem;
    }

    .portfolio-card .card-overlay {
        background: none;
    }

    /* Disable Hover Effects on Mobile */
    .portfolio-card:hover .card-image-default {
        opacity: 1 !important;
    }

    .portfolio-card:hover .card-image-hover {
        opacity: 0 !important;
        display: none;
    }

    .portfolio-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .portfolio-card img {
        transition: none !important;
    }

    .nav-links {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }

    .mobile-logo {
        display: block;
        height: 40px;
    }

    .desktop-logo {
        display: none;
    }

    .detail-content-wrapper {
        grid-template-columns: 1fr;
    }

    .detail-info {
        border-left: none;
        border-top: 3px solid #FF9900;
        padding-left: 0;
        padding-top: 20px;
    }

    .detail-hero {
        height: 40vh;
    }

    .detail-title {
        font-size: 2rem;
    }

    .portfolio-section {
        padding-top: 60px;
    }

    .homepage-description {
        margin-top: 20px;
    }
}

/* --- VISUAL DATA LOGS (Gallery) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #333;
    transition: border-color 0.3s ease;
}

.gallery-item:hover {
    border-color: #FF9900;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.lightbox img,
.lightbox video {
    max-width: 90%;
    max-height: 90vh;
    border: 1px solid #FF9900;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #FF9900;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    z-index: 10001;
    transition: color 0.3s;
    user-select: none;
}

.lightbox-nav:hover {
    color: #FF9900;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.navigation-footer {
    margin-top: 80px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    padding: 15px 30px;
    background: transparent;
    border: 1px solid #FF9900;
    color: #FF9900;
    font-weight: bold;
    letter-spacing: 2px;
    transition: 0.3s;
    display: inline-block;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    min-width: 150px;
}

.nav-btn:hover {
    background: #FF9900;
    color: #1A1A1A;
}

/* Specific Button Styles */
.return-btn {
    padding: 8px 16px;
    /* Reduced size */
    font-size: 0.8rem;
    border-style: dashed;
    /* Optional: distinct style for return */
}

.prev-btn,
.next-btn {
    min-width: 120px;
}


/* Mobile Responsive Styles for Project Page */
@media(max-width:768px) {
    .navigation-footer {
        flex-direction: row;
        gap: 8px;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .nav-btn {
        padding: 10px 12px;
        font-size: 0.75rem;
        min-width: auto;
        letter-spacing: 1px;
    }

    .prev-btn,
    .next-btn {
        min-width: auto;
    }

    .return-btn {
        padding: 10px 8px;
        font-size: 0.7rem;
    }

    /* Mobile Project Grid - 2 Column Grid */
    .project-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .project-card {
        display: block;
        width: 100%;
        margin-bottom: 0;
    }

    /* Square aspect ratio for mobile cards */
    .project-card .flip-container {
        padding-bottom: 100%;
        height: 0;
    }

    .project-card .front,
    .project-card .back-img {
        position: absolute;
        height: 100%;
        width: 100%;
    }

    .project-card .front img,
    .project-card .back-img img {
        object-position: center;
    }

    /* Hide Tech Specs on Mobile */
    .project-card .tech-specs {
        display: none !important;
    }

    /* Hide Hover Message on Mobile */
    .project-card .card-hover-msg {
        display: none;
    }

    /* Disable Hover Effects on Mobile */
    .project-card .back-img {
        display: none !important;
    }

    .project-card:hover .back-img {
        display: none !important;
        opacity: 0 !important;
    }

    .project-card:hover .card-text-default {
        opacity: 1 !important;
    }
}

/* --- SKELETON LOADING ANIMATION --- */
/* --- LOADING SPINNER --- */
.skeleton-loading {
    background: #111;
    position: relative;
    overflow: hidden;
}

/* Spinner Overlay */
.skeleton-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 3px solid rgba(255, 153, 0, 0.2);
    border-top: 3px solid #FF9900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.1);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-loaded .skeleton-loading::after {
    display: none;
}

/* Mobile Back Button for Project Page */
.mobile-back-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #FF9900;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.mobile-back-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-back-btn:hover {
    background: #FF9900;
    color: #1A1A1A;
}

@media (max-width: 768px) {
    .mobile-back-btn {
        display: flex;
    }
}


/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for sequential reveals */
.reveal:nth-child(1) {
    transition-delay: 0s;
}

.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal:nth-child(6) {
    transition-delay: 0.5s;
}

.reveal:nth-child(7) {
    transition-delay: 0.6s;
}

.reveal:nth-child(8) {
    transition-delay: 0.7s;
}

.reveal:nth-child(9) {
    transition-delay: 0.8s;
}

.reveal:nth-child(10) {
    transition-delay: 0.9s;
}

/* Reset delays when active to allow re-triggering */
.reveal.active {
    transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* --- CONTACT FORM --- */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Space Mono', monospace;
    color: #FF9900;
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* Prevents padding from causing overflow */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF9900;
    background: rgba(255, 153, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid #FF9900;
    color: #FF9900;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-btn:hover {
    background: #FF9900;
    color: #1A1A1A;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.3);
}

.contact-form select {
    width: 100%;
    padding: 15px;
    background: #1A1A1A;
    border: 1px solid #333;
    color: #FF9900;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact-form select:focus {
    outline: none;
    border-color: #FF9900;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
}
.contact-form select option {
    background: #1A1A1A;
    color: #FF9900;
}

/* --- FORM STATUS MESSAGES --- */
.form-status {
    margin-top: 15px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

.form-status.transmitting {
    color: #FF9900;
    animation: blink 1s infinite;
}

.form-status.success {
    color: #00FF00;
}

.form-status.error {
    color: #FF0000;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* --- SHARE BUTTON --- */
/* --- SHARE BUTTON --- */
.share-btn {
    background: transparent;
    border: 2px solid #FF9900;
    color: #FF9900;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    padding: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: auto;
    max-width: 150px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
}

.share-text {
    flex: 1;
    text-align: center;
    font-weight: 700;
    padding: 0 8px;
}

.share-separator {
    width: 2px;
    height: 100%;
    background-color: #FF9900;
}

.share-icon {
    width: 30px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: rgba(255, 153, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.2);
}

.share-btn:active {
    transform: scale(0.98);
}

/* --- RELATED PROJECTS --- */
.related-projects {
    margin: 60px 0 40px 0;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.related-projects h3 {
    color: #FF9900;
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.related-card {
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    border-top: 3px solid #FF9900;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}



/* Related card image styles with hover swap */
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.3);
}

.related-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.related-card-img .card-img-hover {
    opacity: 0;
}

.related-card:hover .related-card-img .card-img-default {
    opacity: 0;
}

.related-card:hover .related-card-img .card-img-hover {
    opacity: 1;
}

.related-card-content {
    padding: 15px;
}

.related-card h4 {
    color: #FF9900;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.related-tags {
    color: #888;
    font-size: 0.75rem;
    margin: 0;
    font-family: 'Space Mono', monospace;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related-projects {
        margin: 40px 0 30px 0;
        padding-top: 30px;
    }

    .related-projects h3 {
        font-size: 1rem;
        margin-bottom: 20px;
    }

        .related-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .related-card:hover .related-card-img .card-img-default {
        opacity: 1 !important;
    }
    
    .related-card:hover .related-card-img .card-img-hover {
        opacity: 0 !important;
    }

    .related-card-img {
        height: 120px;
    }

    .related-card-content {
        padding: 10px;
    }



    /* Related card image styles with hover swap */
    .related-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 20px rgba(255, 153, 0, 0.3);
    }

    .related-card-img {
        width: 100%;
        height: 200px;
        overflow: hidden;
        position: relative;
    }

    .related-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        transition: opacity 0.3s ease;
    }

    .related-card-img .card-img-hover {
        opacity: 0;
    }

    .related-card:hover .related-card-img .card-img-default {
        opacity: 0;
    }

    .related-card:hover .related-card-img .card-img-hover {
        opacity: 1;
    }

    .related-card-content {
        padding: 15px;
    }

    .related-card h4 {
        font-size: 0.75rem;
        margin: 0 0 5px 0;
    }

    .related-tags {
        font-size: 0.65rem;
    }
}

/* Mobile Header Styles */
@media (max-width: 768px) {
    .portfolio-header {
        flex-direction: column;
        font-size: 1.8rem;
        gap: 5px;
    }

    .portfolio-header .header-separator {
        display: none;
    }
}
/* ======================================== 
   WORK IN PROGRESS BANNERS 
   ======================================== */

/* WIP Banner - Project Cards (bottom of image) */
.wip-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FF9900 0%, #CC7A00 100%);
    color: #1A1A1A;
    text-align: center;
    padding: 8px 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 20;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* WIP Banner - Project Detail Page */
.wip-detail-banner {
    background: linear-gradient(135deg, #FF9900 0%, #CC7A00 100%);
    color: #1A1A1A;
    text-align: center;
    padding: 15px 20px;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.wip-detail-banner span {
    margin-right: 10px;
}
