<style>
		html, body {
			width: 100%;
			margin: 0;
			padding: 0;
			overflow-x: hidden; /* This kills the horizontal scroll */
			position: relative;
		}

        :root {
            --bg-dark: #020810;
            --accent-cyan: #00d2ff;
            --text-gray: #a0aab8;
            --card-bg: rgba(255, 255, 255, 0.03);
            --border-glow: rgba(0, 210, 255, 0.3);
        }

        body {
            background-color: var(--bg-dark);
            color: white;
            font-family: 'Rajdhani', sans-serif;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
			padding-top: 80px;
        }
		
		nav, .nav-container {
			display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 6%;
			position: fixed; 
			top: 0;
			left: 0;
			width: 100%;
			z-index: 1000; 
			background: rgba(2, 5, 10, 0.85); 
			backdrop-filter: blur(10px);
			border-bottom: 1px solid rgba(0, 210, 255, 0.1);
			box-sizing: border-box;
		}		

        .nav-links {
            display: flex;
            gap: 20px;
        }

        .nav-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-gray);
            padding: 8px 16px;
            cursor: pointer;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: 0.3s;
			
			/* REMOVE DEFAULT UNDERLINE */
			text-decoration: none; 
			
			/* Ensure the link behaves like a block for padding/alignment */
			display: inline-flex;
			align-items: center;
			justify-content: center;
        }

        .nav-btn:hover, .nav-btn.active {
            border-color: var(--accent-cyan);
            color: white;
            box-shadow: 0 0 10px var(--border-glow);
			text-decoration: none;
        }

        /* Hero Section */
        .hero {
            display: flex;
            padding: 100px 8%;
            gap: 40px;
            align-items: center;
			margin-bottom:60px;
        }

        .hero-content { flex: 1; }

        .system-status {
            color: var(--accent-cyan);
            font-size: 12px;
            letter-spacing: 2px;
            margin-bottom: 20px;
            display: block;
        }
		
		.system-status {
			position: relative;
			padding: 5px 10px;
			background: rgba(0, 210, 255, 0.05);
			border: 1px solid rgba(0, 210, 255, 0.3);
			border-radius: 4px;
			font-family: 'Orbitron', sans-serif;
			font-size: 0.6rem;
			color: var(--accent-cyan);
			letter-spacing: 1px;
			
			/* Apply the animations */
			animation: statusPulse 4s ease-in-out infinite, statusBlink 8s infinite;
			display: inline-flex;
			align-items: center;
			gap: 10px;
		}

		/* 1. The Border & Glow Pulse */
		@keyframes statusPulse {
			0%, 100% { 
				border-color: rgba(0, 210, 255, 0.3);
				box-shadow: 0 0 5px rgba(0, 210, 255, 0.1);
			}
			50% { 
				border-color: rgba(0, 210, 255, 0.8);
				box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
			}
		}

		/* 2. The Text "System Processing" Flicker */
		@keyframes statusBlink {
			0%, 90%, 100% { opacity: 1; }
			92% { opacity: 0.5; }
			94% { opacity: 0.8; }
			96% { opacity: 0.3; }
		}

		/* 3. The Green Dot Pulse (Add this dot in HTML if you haven't) */
		.status-dot-active {
			width: 6px;
			height: 6px;
			background-color: #00ff41; /* Matrix Green */
			border-radius: 50%;
			box-shadow: 0 0 8px #00ff41;
			animation: rapidPulse 1.5s infinite;
		}

		@keyframes rapidPulse {
			0% { transform: scale(1); opacity: 1; }
			50% { transform: scale(1.4); opacity: 0.5; }
			100% { transform: scale(1); opacity: 1; }
		}

        h1 {
            font-family: 'Orbitron', sans-serif;
            font-size: 4rem;
            line-height: 0.9;
            margin: 0 0 20px 0;
            text-transform: uppercase;
        }

        h1 span { color: var(--accent-cyan); display: block; }

        .hero-p {
            color: var(--text-gray);
            max-width: 450px;
            font-size: 1.1rem;
            margin-bottom: 40px;
        }

        .btn-group { display: flex; gap: 20px; }

        .btn-primary {
            background: var(--accent-cyan);
            color: var(--bg-dark);
            padding: 12px 30px;
            border: none;
            font-weight: bold;
            text-transform: uppercase;
            cursor: pointer;
        }

        .btn-secondary {
            background: transparent;
            color: var(--accent-cyan);
            border: 1px solid var(--accent-cyan);
            padding: 12px 30px;
            text-transform: uppercase;
            cursor: pointer;
        }

        /* Cards */
        .card-container {
            flex: 1;
            display: flex;
            gap: 20px;
        }

        .card {
            background: var(--card-bg);
            border: 1px solid rgba(0, 210, 255, 0.2);
            padding: 40px 20px;
            text-align: center;
            flex: 1;
            position: relative;
        }

        /* Featured Section */
        .featured-header {
            padding: 0 8%;
            text-transform: uppercase;
            color: white;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.5rem;
        }

        .featured-module {
            margin: 40px 8% 100px;
            border: 1px solid rgba(0, 210, 255, 0.25);
            display: flex;
            background: rgba(255,255,255,0.02);
            padding: 40px;
            gap: 40px;
        }

        .module-img {
            width: 75%;
            filter: grayscale(0.35);
            border: 1px solid rgba(255,255,255,0.1);
        }
		
		.module-img {
			width: 100%;
			height: 450px; /* Or whatever fixed height you are using */
			
			/* THE KEY FIXES: */
			object-fit: cover;     /* Crops the image to fit the container without stretching */
			object-position: center; /* Ensures the middle of the image stays visible */
			
			/* Professional Touch */
			display: block;
			border-bottom: 1px solid rgba(0, 210, 255, 0.2);
		}
		
		.tag {
			display: inline-block;
			padding: 4px 10px;
			font-size: 0.65rem;
			font-family: 'Orbitron', sans-serif;
			border-radius: 4px;
			text-transform: uppercase;
			letter-spacing: 1px;
			border: 1px solid rgba(255, 255, 255, 0.2);
			background: rgba(255, 255, 255, 0.1);
			color: #ccc;
			transition: all 0.3s ease;
			white-space: nowrap; /* Prevents a single tag (like "Neural Network") from splitting in half */
		}
		
		/* Color Variants */
		.tag-hw { 
			border-color: rgba(255, 157, 0, 0.6);
			background: rgba(255, 157, 0, 0.08);
		} /* color: #ff9d00; Hardware: Amber/Orange */

		.tag-sw { 
			border-color: rgba(0, 210, 255, 0.6);
			background: rgba(0, 210, 255, 0.08); 
		} /* color: #00d2ff; Software: Cyan */

		.tag-ai { 
			border-color: rgba(160, 32, 240, 0.6);
			background: rgba(160, 32, 240, 0.08); 
			box-shadow: 0 0 8px rgba(160, 32, 240, 0.2);
		} /* color: #df80ff; AI/Logic: Purple/Magenta */

		.tag-sys { 
			border-color: rgba(0, 255, 65, 0.6);
			background: rgba(0, 255, 65, 0.08); 
		} /* System/OS: Matrix Green */

		/* Hover effect for all tags */
		.tag:hover {
			background: rgba(255, 255, 255, 0.22);
			transform: translateY(-2px);
			box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
		}
		
		/* --- New Animation & Interaction Rules --- */

		/* 1. Card Hover Effect */
		.card {
			transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smooth easing */
			cursor: pointer;
			overflow: hidden;
		}

		.card:hover {
			transform: translateY(-8px); /* Lifts the card up */
			background: rgba(0, 210, 255, 0.08); /* Deepens the blue tint */
			border-color: var(--accent-cyan);
			box-shadow: 0 0 25px rgba(0, 210, 255, 0.2); /* Neon glow */
		}

		/* 2. Button Hover Effect */
		.btn-primary:hover {
			filter: brightness(1.2);
			box-shadow: 0 0 15px var(--accent-cyan);
		}

		.btn-secondary:hover {
			background: rgba(0, 210, 255, 0.15);
			box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.2);
		}

		/* 3. Image Hover Effect (Featured Module) */
		.module-img {
			transition: filter 0.5s ease, transform 0.5s ease;
		}

		.featured-module:hover .module-img {
			filter: grayscale(0); /* Adds some color back on hover */
			transform: scale(1.02); /* Slight zoom */
		}

		/* 4. Navigation Link Animation */
		.nav-btn {
			position: relative;
			transition: 0.3s;
		}

		.nav-btn::after {
			content: '';
			position: absolute;
			bottom: 0;
			left: 50%;
			width: 0;
			height: 1px;
			background: var(--accent-cyan);
			transition: 0.3s;
			transform: translateX(-50%);
		}

		.nav-btn:hover::after {
			width: 80%; /* underline expands from center */
		}
		
		.contact-section {
			padding: 0 8% 100px;
			    /* Deep gradient: dark center to pitch black edges */
		}

		.contact-form {
			background: var(--card-bg);
			border: 1px solid rgba(0, 210, 255, 0.2);
			padding: 40px;
			margin-top: 30px;
		}

		.input-grid {
			display: grid;
			grid-template-columns: 1fr 1fr;
			gap: 25px;
		}

		.input-group {
			display: flex;
			flex-direction: column;
			gap: 8px;
		}

		.full-width {
			grid-column: span 2;
			margin-top: 25px;
		}

		label {
			font-size: 12px;
			color: var(--accent-cyan);
			letter-spacing: 1px;
		}

		input, textarea {
			background: rgba(255, 255, 255, 0.05);
			border: 1px solid rgba(255, 255, 255, 0.1);
			padding: 12px;
			color: white;
			font-family: 'Rajdhani', sans-serif;
			outline: none;
			transition: 0.3s;
		}

		input:focus, textarea:focus {
			border-color: var(--accent-cyan);
			background: rgba(0, 210, 255, 0.05);
		}

		textarea {
			height: 120px;
			resize: none;
		}

		.warning-text {
			color: #ff4b4b;
			font-size: 11px;
			display: none; /* Hidden by default */
			margin-top: 5px;
			letter-spacing: 1px;
		}

		/* Mobile responsiveness */
		@media (max-width: 768px) {
			.input-grid { grid-template-columns: 1fr; }
			.full-width { grid-column: span 1; }
			.nav-links {
				/* ... existing styles ... */
				padding: 40px 0; /* Give the vertical list some room */
			}

			.nav-btn {
				/* Force every item to be the exact same width on mobile */
				width: 85% !important; 
				margin: 0 auto;
				padding: 15px 0; /* Vertical padding only, width is handled by 85% */
				text-align: center;
			}
		}
		html {
			scroll-behavior: smooth;
		}

		/* Optional: Add a highlight animation when the user arrives at the form */
		#contact-form-section:target .contact-form {
			animation: highlight-glow 1.5s ease-out;
		}

		@keyframes highlight-glow {
			0% { box-shadow: 0 0 0 rgba(0, 210, 255, 0); }
			50% { box-shadow: 0 0 30px rgba(0, 210, 255, 0.4); }
			100% { box-shadow: 0 0 0 rgba(0, 210, 255, 0); }
		}
		
		.logo {
			/* 1.5rem is 50% larger than the standard 1rem base */
			font-size: 1.5rem; 
			font-family: 'Orbitron', sans-serif;
			letter-spacing: 2px;
			color: white; /* Default color for JAY and TECH */
			display: flex;
			align-items: center;
			font-weight: 700;
		}

		.accent-char {
			/* This makes the '2' match your theme's cyan blue */
			color: var(--accent-cyan);
			/* Optional: Add a slight glow to the number to make it pop */
			text-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
			margin: 0 2px; /* Slight spacing around the number */
		}

		.logo:hover {
			/* Optional: a slight scale-up on hover to match your tech theme */
			transform: scale(1.05);
			color: var(--accent-cyan);
		}
		
		.other-projects {
			padding: 0 8% 100px;
		}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 30px;
    margin-top: 30px;
}

.project-mini-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

/* Hover effect to match previous cards */
.project-mini-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.status-tag {
    font-size: 10px;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 2px 8px;
    letter-spacing: 1px;
}

.project-mini-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.view-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.view-link:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
	.other-projects {
			padding: 0 5% 100px;
		}
}

/* Container for the mini card */
.project-mini-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 210, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Clips image corners to card border */
    transition: all 0.3s ease;
}

/* Image styling */
.project-thumb {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 210, 255, 0.25);
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills space without stretching */
    filter: grayscale(0.5) brightness(0.8); /* Tech aesthetic */
    transition: 0.5s ease;
}

/* Internal padding for text */
.card-body {
    padding: 25px;
}

/* Hover effect for the image */
.project-mini-card:hover .project-thumb img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

/* Visual 'scanline' overlay on images */
.project-thumb::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 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, 3px 100%;
    pointer-events: none;
}

/* Updated Hero with Radial Gradient and Texture */
.hero {
    display: flex;
    padding: 120px 8% 100px;
    gap: 40px;
    align-items: center;
    position: relative;
    /* Deep gradient: dark center to pitch black edges */
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 210, 255, 0.08) 0%, rgba(2, 8, 16, 1) 70%),
        linear-gradient(rgba(2, 8, 16, 0.8), rgba(2, 8, 16, 0.8));
    overflow: hidden;
}

/* Adding a subtle tech-dot overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px; /* Adjust for dot density */
    pointer-events: none;
    opacity: 0.3;
}

/* Updating Cards to feel more 'Glass-like' */
.card {
    background: rgba(255, 255, 255, 0.02); /* More transparent */
    backdrop-filter: blur(10px); /* Blurs the background gradient */
    border: 1px solid rgba(0, 210, 255, 0.15);
    padding: 40px 20px;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1; /* Sits above the dot overlay */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    background: rgba(0, 210, 255, 0.05);
    border-color: var(--accent-cyan);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.2);
}

/* 1. Hide the checkbox */
.menu-checkbox {
    display: none;
}

/* 2. Style the Hamburger Icon (Hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: 0.3s;
}

/* 3. Mobile Media Query */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100vw; /* Hidden off-screen by default */
        width: 100vw;
        height: 100vh;
        background: rgba(2, 8, 16, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        border-left: 1px solid var(--border-glow);
		/* THE CRITICAL FIXES */
        max-width: 100%; 
        box-sizing: border-box; /* Ensures padding doesn't increase width */
        overflow-x: hidden; 
    }

    /* When the menu is active/open */
    .nav-links.active {
        right: 0;
    }

    /* Show menu when checkbox is checked */
    .menu-checkbox:checked ~ .nav-links {
        right: 0;
    }

    /* Animate Hamburger into an 'X' when checked */
    .menu-checkbox:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-checkbox:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-checkbox:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Make buttons full width on mobile */
    .nav-btn {
        width: 80%;
        padding: 15px;
    }
	/* 1. Stack the image and text vertically */
    .featured-module {
        flex-direction: column;
        padding: 20px; /* Reduce padding for smaller screens */
        margin: 20px 5% 90px; /* Shrink outer margins */
        gap: 20px; /* Reduce gap between image and text */
    }

    /* 2. Make the image take full width */
    .module-img {
        width: 100%;
        height: 250px; /* Give it a fixed height on mobile */
        object-fit: cover; /* Prevents squishing */
    }

    /* 3. Adjust the heading size so it doesn't wrap awkwardly */
    .featured-module h2 {
        font-size: 1.8rem;
    }

    /* 4. Ensure tags are visible and don't overflow */
    .tag {
        display: inline-block;
        margin-bottom: 8px;
    }
	
	/* 1. Stack the Hero content */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 6% 60px; /* Reduced top padding for mobile */
        gap: 50px;
    }

    /* 2. Adjust Typography */
    h1 {
        font-size: 2.5rem; /* Scale down the massive font */
        line-height: 1.1;
    }

    .hero-p {
        margin-left: auto;
        margin-right: auto; /* Center the paragraph */
        font-size: 1rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column; /* Stack them for better mobile UX */
        gap: 15px;
        width: 100%;
        box-sizing: border-box; /* Crucial for keeping padding inside the width */
        padding: 0; 
    }

    .btn-primary, .btn-secondary {
        width: 100% !important; /* Forces buttons to fit the screen width */
        box-sizing: border-box; 
        margin: 0; /* Remove any side margins that might push it right */
        text-align: center;
        display: block;
    }

    /* 3. Handle the Cards */
    .card-container {
        width: 100%;
        flex-direction: row; /* Keep cards side-by-side or stack them */
        gap: 15px;
    }

    .card {
        padding: 20px 10px; /* Slimmer padding */
    }
	.card-body {
		padding: 25px 0;;	}
    
    .card h3 {
        font-size: 1rem;
    }

    /* 4. Adjust the background gradient for vertical view */
    .hero {
        background: radial-gradient(circle at 50% 20%, rgba(0, 210, 255, 0.15) 0%, rgba(2, 8, 16, 1) 80%);
		padding-left: 5%;
        padding-right: 5%;
        overflow-x: hidden; 
        box-sizing: border-box;
    }
	
	/* 1. Force the grid into a single column */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px; /* Slightly tighter gap for mobile */
    }

    /* 2. Adjust the card container for mobile */
    .project-mini-card {
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    /* 3. Standardize image height for vertical scrolling */
    .project-thumb {
        height: 160px; /* Slightly shorter than desktop to save vertical space */
    }

    /* 4. Improve typography for small screens */
    .project-title {
        font-size: 1.1rem;
        word-break: break-word; /* Prevents long project names from breaking layout */
    }

    .card-header {
        flex-direction: column; /* Stack Title and Status tag if they get too wide */
        align-items: flex-start;
        gap: 10px;
    }

    /* 5. Ensure tags don't cause horizontal overflow */
    .tech-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .tag {
        font-size: 11px; /* Smaller text for mobile tags */
        padding: 2px 6px;
    }
}

/* Adding a tech texture to the Hero Cards */
.card-container .card {
    /* Base card styles already exist, we are adding the texture layers: */
    background-image: 
        /* 1. Horizontal/Vertical Micro-grid lines */
        linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
    background-size: 10px 10px; /* Size of the tech grid */
    background-position: center;
    border: 1px solid rgba(0, 210, 255, 0.15);
    position: relative;
    overflow: hidden;
}

/* Adding the "Corner Bracket" HUD detail */
.card-container .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border-top: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
    pointer-events: none;
}

.card-container .card::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
    pointer-events: none;
}

/* Enhancing the inner glow */
.card-container .card:hover {
    background-color: rgba(0, 210, 255, 0.08);
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.1) 1px, transparent 1px);
}

.main-footer {
    background: rgba(0, 0, 0, 0.4); /* Subtle contrast from the body grid */
    border-top: 1px solid rgba(0, 210, 255, 0.2);
    padding: 60px 8% 20px;
    margin-top: 100px;
    backdrop-filter: blur(5px);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr; /* Legal gets more space */
    gap: 40px;
}

.footer-brand .tagline {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 15px;
}

.footer-nav h4, .footer-legal h4 {
    color: var(--accent-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--accent-cyan);
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.5); /* Dimmed for secondary importance */
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-gray);
    letter-spacing: 1px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

.software-section {
    padding: 0 8%;
    position: relative;
}

.section-header {
    margin-bottom: 50px;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.software-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 210, 255, 0.1);
    padding: 30px;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
}

.software-card:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 210, 255, 0.05);
    transform: translateY(-5px);
}

.card-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-cyan);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 12px;
    font-family: 'Orbitron', sans-serif;
}

.verdict-box {
    background: rgba(81, 81, 81, 0.4);
    border-left: 3px solid var(--accent-cyan);
    padding: 12px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.4;
}

.verdict-label {
    color: var(--accent-cyan);
    font-weight: bold;
    margin-right: 5px;
}

.software-card h3 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.software-card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.software-card li {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.software-card li::before {
    content: ">>";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 0.7rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .software-grid {
        grid-template-columns: 1fr;
    }
}
/* Remove default link styling */
.card-link {
    text-decoration: none;
    color: inherit; /* Keeps your existing white/gray text colors */
    display: flex; /* Ensures it stretches to the same size as the other card */
    flex: 1;
}

/* Ensure the card inside the link still behaves correctly */
.card-link .card {
    width: 100%;
    cursor: pointer;
}

/* Optional: Add a specific 'Click to View' hint on hover */
.card-link:hover .card::before {
    content: "LINK > OPEN";
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.6rem;
    color: var(--accent-cyan);
    font-family: 'Orbitron', sans-serif;
    opacity: 0.8;
	width:20%;
}

.hardware-section {
    padding: 0 8% 80px;
    border-bottom: 1px dashed rgba(0, 210, 255, 0.1);
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.hw-card {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.05) 0%, rgba(2, 5, 10, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px 25px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hw-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
    transform: scale(1.02);
}

.hw-spec-tag {
    position: absolute;
    top: 11px;
    left: 14px;
    font-size: 0.6rem;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
    opacity: 0.6;
}

.hw-verdict {
    font-size: 0.85rem;
    background: rgba(0, 210, 255, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    height: 8px;
    width: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.hw-content p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.hw-content p strong {
    color: #fff;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pcb-special {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--accent-cyan) !important;
    background-color: #02050a;
    
    /* Layer 1: Subtle Hexagon Pattern */
    /* Layer 2: Moving "Data Stream" Gradient */
    background-image: 
        url("https://www.transparenttextures.com/patterns/carbon-fibre.png"), 
        linear-gradient(115deg, 
            transparent 0%, 
            transparent 40%, 
            rgba(0, 210, 255, 0.1) 50%, 
            transparent 60%, 
            transparent 100%
        );
    background-size: 200px 200px, 300% 100%;
    animation: dataStream 8s linear infinite;
    box-shadow: inset 0 0 30px rgba(0, 210, 255, 0.1);
}

/* The subtle "scanning" animation */
@keyframes dataStream {
    0% { background-position: 0 0, 100% 0; }
    100% { background-position: 0 0, -200% 0; }
}

/* Add a corner-bracket effect to make it look like a viewfinder */
.pcb-special::before {
    content: "";
    position: absolute;
    top: 10px; left: 10px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
    opacity: 0.5;
}

.pcb-special::after {
    content: "AI_BRIDGE_ACTIVE";
    position: absolute;
    bottom: 10px; right: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    opacity: 0.4;
    animation: blink 2s steps(2) infinite;
}

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

.feature-item {
    backdrop-filter: blur(2px);
    z-index: 1; /* Keep text above the scanlines */
}

.pcb-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-title {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
    border: none !important; /* Overriding previous HW styles */
}

.tech-bullet-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tech-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 1px solid rgba(0, 210, 255, 0.1);
    transition: all 0.3s ease;
}

/* Subtle highlight on hover */
.tech-bullet-list li:hover {
    border-left: 1px solid var(--accent-cyan);
    background: rgba(0, 210, 255, 0.02);
}

.bullet-icon {
    color: var(--accent-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    margin-top: 3px;
    text-shadow: 0 0 5px var(--accent-cyan);
}

.bullet-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
}

.bullet-text strong {
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    display: block; /* Moves the description to a new line for better scannability */
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    /* 1. Adjust the section padding for tighter mobile screens */
    .hardware-section {
        padding: 0 5% 80px;
    }
	.logo {
	display:flex;
	align-items:center;
	}
	.logo-foot {
	display:block !important;
	}

    /* 2. Force the grid into a single column */
    .hardware-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 3. Refine the Card layout */
    .hw-card {
        padding: 30px 20px;
        /* Remove the scale transform on mobile to prevent accidental zooming/overflow */
        transform: none !important; 
    }

    /* 4. Fix the AI Bridge (pcb-special) internal layout */
    .pcb-special .pcb-features {
        grid-template-columns: 1fr; /* Stack the 3 AI features vertically */
        gap: 15px;
    }

    .feature-item {
        padding: 12px;
        border-left: 3px solid var(--accent-cyan);
        background: rgba(0, 210, 255, 0.05); /* Slightly more visible on mobile */
    }

    /* 5. Typography Scaling */
    .hw-card h3 {
        font-size: 1.2rem;
    }

    .hw-verdict {
        font-size: 0.8rem;
        flex-direction: row; /* Keep the dot and text side-by-side */
        align-items: flex-start;
    }

    .hw-content p {
        font-size: 0.85rem;
    }
	.tech-bullet-list li {
        gap: 8px; /* Reduce gap to save horizontal space */
        padding-left: 8px;
        margin-bottom: 20px; /* Increase spacing between items for thumb-scrolling */
    }

    .bullet-icon {
        font-size: 0.6rem; /* Slightly smaller icon */
        margin-top: 5px; /* Re-align with smaller text */
    }

    .bullet-text {
        font-size: 0.85rem; /* Standard mobile reading size */
        line-height: 1.4;
    }

    .bullet-text strong {
        font-size: 0.75rem;
        letter-spacing: 1px;
        margin-bottom: 4px; /* Give the title more breathing room */
    }
	.brand-icon-big {
		height: 100px; /* Desktop Size */
		width: auto;
		filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5));
		transition: transform 0.3s ease;
		display:block;
		margin: 0 auto;
	}
}
.logo-link {
    text-decoration: none; /* Removes underlines if the logo is text-based */
    color: inherit;         /* Prevents text-logos from turning blue */
    display: contents;     /* THE SECRET WEAPON: Makes the link act as if it isn't there layout-wise */
    cursor: pointer;
}
.noShow {
	display:none;
	height:0;
	width:0;
	all:unset;
}

.brand-icon {
    height: 50px; /* Desktop Size */
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5));
    transition: transform 0.3s ease;
}
.brand-icon-big {
    height: 100px; /* Desktop Size */
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5));
    transition: transform 0.3s ease;
	display:block;
}
/* Layout Management */
.project-detail-page {
    padding: 120px 2% 50px;
    max-width: 1440px;
    margin: 0 auto;
}

.breadcrumb {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-cyan); }

/* Grid Layout */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Image Handling */
.image-gallery img {
    width: 100%;
    border: 1px solid rgba(0, 210, 255, 0.2);
    object-fit: cover;
    transition: 0.3s;
}

.image-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.image-sub-grid img { height: 180px; }

/* Sidebar & Parts List */
.spec-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
}

.spec-list { list-style: none; padding: 0; }
.spec-list li {
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.parts-table {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
}

.parts-table td {
    padding: 10px 5px;
    border-bottom: 1px solid rgba(0, 210, 255, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-sidebar { order: 2; }
    .detail-main { order: 1; }
}

.project-status-bar {
    margin: 20px 0;
    max-width: 400px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: diagnosticPulse 2s infinite ease-in-out;
}

.status-label {
    color: rgba(255, 255, 255, 0.5);
}

.status-value {
    color: var(--accent-cyan);
}

/* Progress Bar Track */
.status-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

/* Progress Bar Fill */
.status-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-cyan));
    box-shadow: 0 0 10px var(--accent-cyan);
    position: relative;
}

/* Moving Scanline effect on the progress bar */
.status-progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: progressBarScan 2s infinite linear;
}

@keyframes diagnosticPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.4; }
}

@keyframes progressBarScan {
    0% { left: -30px; }
    100% { left: 100%; }
}

/* Styling links specifically inside the Spec Card */
.spec-card a, .detail-grid a {
    color: var(--accent-cyan);
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
    /*display: inline-flex;*/
    align-items: center;
    gap: 0;
}

/* Adding a terminal-style bracket before the link */
.spec-card a::before, .detail-grid a::before {
    content: '[';
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
}

.spec-card a::after, .detail-grid a::after {
    content: ']';
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
}

/* Hover State: The "Focus" brackets appear */
.spec-card a:hover, .detail-grid a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-cyan);
}

.spec-card a:hover::before,
.spec-card a:hover::after,
.detail-grid a:hover::before,
.detail-grid a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Optional: Add a subtle underline pulse */
.spec-card a .link-text, .detail-grid a .link-text {
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    padding-bottom: 1px;
}

.spec-card a:hover .link-text, .detail-grid a:hover .link-text {
    border-bottom: 1px solid var(--accent-cyan);
}
.description-block h3 {
	padding:0;
}
.description-block h4 {
	padding:20px 0 0 0;
	font-size: 1.1rem;
	margin-bottom:10px;
	color:#00ff41;
}

/* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Above everything, including nav */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 5, 10, 0.9);
    backdrop-filter: blur(15px); /* Professional blur effect */
}

/* The Expanded Image */
.modal-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
    animation: zoomIn 0.3s ease-out;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--accent-cyan);
}
#modalCaption {display: block;}

/* Zoom Animation */
@keyframes zoomIn {
    from { transform: translateY(-50%) scale(0.9); opacity: 0; }
    to { transform: translateY(-50%) scale(1); opacity: 1; }
}

.manifest-section {
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 210, 255, 0.1);
    border-radius: 4px;
}

.manifest-container {
    overflow-x: auto; /* Ensures it doesn't break on mobile */
    margin-top: 20px;
}

.manifest-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
}

.manifest-table th {
    text-align: left;
    padding: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: rgba(0, 210, 255, 0.05);
    border-bottom: 2px solid var(--accent-cyan);
    letter-spacing: 1px;
}

.manifest-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.manifest-row:hover {
    background: rgba(0, 210, 255, 0.03);
}

.manifest-table td {
    padding: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.ref-id {
    font-family: monospace;
    color: var(--accent-cyan);
    font-weight: bold;
}

.part-name {
    color: #fff;
    font-weight: 600;
}

/* Procurement Link Styling */
.part-link {
    text-decoration: none;
    color: var(--accent-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.link-bracket {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.part-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-cyan);
}

.part-link:hover .link-bracket {
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .manifest-table th:nth-child(3), 
    .manifest-table td:nth-child(3) {
        display: none; /* Hide specs column on small screens to prevent crowding */
    }
}
.manifest-header-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap; /* Ensures it stacks on mobile */
}

.status-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    padding: 4px 12px;
    border-radius: 2px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

/* REQUIRED Style: Red/Amber Alert */
.status-required {
    background: rgba(255, 60, 60, 0.1);
    color: #ff3c3c;
    border: 1px solid rgba(255, 60, 60, 0.3);
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.1);
}

.status-required::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 60, 60, 0.2), transparent);
    animation: badge-scan 3s infinite;
}

/* OPTIONAL Style: Cyan/Gray Neutral */
.status-optional {
    background: rgba(0, 210, 255, 0.05);
    color: rgba(0, 210, 255, 0.7);
    border: 1px solid rgba(0, 210, 255, 0.2);
}

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

/* Mobile Tweak */
@media (max-width: 480px) {
    .manifest-header-wrapper {
        gap: 10px;
    }
    .status-badge {
        font-size: 0.55rem;
    }
}
.responsive-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* Matches standard YouTube format */
  border: none;
}

.completion-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 255, 65, 0.03); /* Subtle Green tint for 'Success' */
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 20px 25px;
    margin: 40px 0;
    border-left: 4px solid #00ff41; /* Thicker terminal-green accent */
    overflow: hidden;
}

.banner-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff41;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.banner-icon svg {
    width: 20px;
    height: 20px;
}

.banner-label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #00ff41;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.banner-text {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.4;
}

.status-complete {
    color: #00ff41;
    font-weight: bold;
    font-family: monospace;
}

/* The "Active System" Scanline */
.banner-glitch-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: banner-scan 4s infinite linear;
}

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

/* Mobile Tweak */
@media (max-width: 768px) {
    .completion-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
}

/* Fix for code blocks on all screens */
pre, code {
    white-space: pre-wrap;       /* Allows text to wrap to the next line */
    word-wrap: break-word;       /* Forces long strings to break */
    word-break: break-all;
}

/* Better approach: The Scrollable Container */
pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;            /* Adds a horizontal scrollbar if needed */
    white-space: pre;            /* Keeps code formatting but uses the scrollbar */
    max-width: 100%;             /* Ensures it never exceeds the parent width */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

/* Modern styling for the scrollbar to match Jay2Tech */
pre::-webkit-scrollbar {
    height: 4px;
}

pre::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 10px;
}

/* Container setup */
.detail-grid {
    display: flex;
    flex-wrap: wrap; /* Allows sections to wrap on mobile */
    gap: 30px;
}

.detail-sidebar {
    width: 30%;
    order: 3; /* Sidebar sits on the right of the Hero */
}

.detail-main {
    width: 65%;
    order: 2; /* Project details follow below both */
}

/* Mobile View (The Move) */
@media (max-width: 992px) {
    .detail-grid {
        flex-direction: column;
    }

    .detail-sidebar {
        width: 100%;
        order: 2; 
        margin-bottom: 30px; 
    }

    .detail-main {
        width: 100%;
        order: 3;
    }
}

/* Desktop: Default visibility */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-icon { display: none; }

@media (min-width: 993px) {
    .accordion-content {
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Mobile: Accordion Styles */
@media (max-width: 992px) {
    .accordion-header {
        cursor: pointer;
        padding: 0;
    }

    .accordion-icon {
        display: block;
        width: 12px;
        height: 12px;
        border-right: 2px solid var(--accent-cyan);
        border-bottom: 2px solid var(--accent-cyan);
        transform: rotate(45deg); /* Down arrow */
        transition: transform 0.3s ease;
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    }

    /* Active State */
    .sidebar-block.active .accordion-content {
        max-height: 1000px; /* Large value to accommodate content */
        opacity: 1;
    }

    .sidebar-block.active .accordion-icon {
        transform: rotate(-135deg); /* Up arrow */
    }
}

/* Ensure that if we go BACK to desktop, everything resets */
@media (min-width: 993px) {
    .accordion-content {
        max-height: none !important;
        opacity: 1 !important;
    }
}
@media (max-width: 992px) {
    .accordion-header {
        cursor: pointer;
        /* Crucial for Mobile Chrome: disables double-tap zoom delay */
        touch-action: manipulation; 
        /* Prevents the header text from being selected while tapping */
        user-select: none; 
        -webkit-user-select: none;
        position: relative;
        z-index: 10; /* Ensures it sits above any background layers */
    }

    /* Ensure the content isn't being "hidden" by an overflow-y rule elsewhere */
    aside.detail-sidebar {
        overflow: visible !important;
    }
	.project-detail-page {
		padding: 80px 2% 50px;
	}
}

.module-header {
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.15) 0%, transparent 100%);
    padding: 10px 20px;
    border-bottom: 1px solid rgba(0, 210, 255, 0.1);
    display: inline-block; /* Makes the background only as wide as the text + padding */
    width: 100%;
    box-sizing: border-box;
	margin: 50px 0 15px 0;
}

.module-header h3 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.92rem;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

.accent-char {
    color: #fff;
    margin-right: 10px;
    text-shadow: 0 0 8px var(--accent-cyan);
}

@media (max-width: 992px) {
	.module-header h3 {
		font-size: 0.85rem;
	}
}

/* Styling the NetSuite Infographic container to match your theme */
.net-visual-section .featured-image {
    border: 1px solid rgba(0, 210, 255, 0.3);
    filter: brightness(0.95) contrast(1.05);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.net-visual-section .featured-image:hover {
    filter: brightness(1) contrast(1.1);
    transform: scale(1.01);
}

/* Adding a subtle scanline overlay to match your project modules */
.net-image-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.3;
}

.netsuite-hero {
    position: relative;
    overflow: hidden;
    /* Updated path and extension for your webp image inside the images folder */
    background: linear-gradient(180deg, rgba(2, 8, 16, 0.94) 0%, rgba(2, 5, 10, 0.96) 100%), 
                url('images/netsuite.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(0, 210, 255, 0.15);
}

/* Optional: Adds a high-tech scanline texture over the hero background */
.netsuite-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.25;
    z-index: 1;
}

/* Ensure hero content sits above the background layers */
.netsuite-hero .hero-content {
    position: relative;
    z-index: 2;
}

    </style>