/* ==========================================================================
   1. GLOBAL REACTION VARIABLE TOKENS & RESET BASE STYLES
   ========================================================================== */
:root {
    /* Absolute Dark Green Industrial Showroom Tokens Base */
    --primary-black: #050d0a;       /* Deep rich dark carbon green */
    --carbon-dark: #0b1c15;         /* Secure secondary dark background */
    --carbon-medium: #132a21;       /* Panel structural green */
    --carbon-light: #1b4332;        /* Highlight brand forest green */
    --metal-dark: #2d6a4f;          /* Active border medium green */
    --metal-light: #40916c;         /* High light steel tint */
    
    /* Highly Visible Brand Accents */
    --accent-green: #52b788;        /* Soft crisp mint green */
    --accent-cyan: #74c69d;         /* High visibility hover green */
    --accent-gold: #ecc94b;         /* Industrial safety warning gold */
    
    /* High Contrast Typography Tokens */
    --text-primary: #ffffff;        /* Pure sharp white for headers */
    --text-secondary: #d8f3dc;      /* Light mint green for readable body text */
    --text-dim: #95d5b2;            /* Subdued labels metadata */
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    color: var(--text-primary);       /* FIXED: Swapped dark slate text for white */
    background-color: var(--primary-black); /* FIXED: Dropped white band (#f7fafc) for deep green */
    line-height: 1.6; 
    overflow-x: hidden;
}

main { 
    flex: 1; 
    padding: 40px 20px; 
    max-width: 1100px; 
    margin: 0 auto; 
    width: 100%; 
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. FIXED POSITION FIXED HEADER GLASSBACK BACKDROP
   ========================================================================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: linear-gradient(180deg, rgba(5, 13, 10, 0.98) 0%, rgba(11, 28, 21, 0.9) 60%, transparent 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(82, 183, 136, 0.12);
	z-index: 2000; /* Stays positioned above the active 3D carousel layers */
	transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-container {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 30px;
}

/* ==========================================================================
   3. BRAND ID LOGO CORE & SHIMMER ANIMATION HOOKS
   ========================================================================== */
.logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	position: relative;
}

.logo-icon {
	width: 120px;
	height: 40px;
	margin-right: 15px;
	position: relative;
}

.logo-prism {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.prism-shape {
	width: 22px;
	height: 22px;
	position: relative;
	transform: rotate(45deg);
	background: linear-gradient(135deg, var(--carbon-light) 0%, var(--metal-dark) 40%, var(--accent-green) 100%);
	animation: prismShine 4s ease-in-out infinite;
	border-radius: 2px;
}

@keyframes prismShine {
	0%, 100% {
		filter: brightness(1) drop-shadow(0 0 2px rgba(82, 183, 136, 0.2));
		transform: rotate(45deg) scale(1);
	}
	50% {
		filter: brightness(1.3) drop-shadow(0 0 10px rgba(116, 198, 157, 0.6));
		transform: rotate(45deg) scale(1.06);
	}
}

.prism-shape::before,
.prism-shape::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: inherit;
	opacity: 0.4;
	border-radius: 2px;
}

.prism-shape::before { transform: rotate(30deg); }
.prism-shape::after { transform: rotate(-30deg); }

.logo-text {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	line-height: 1;
}

.logo-text .prism {
	background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.logo-text .flux {
	color: var(--text-dim);
	font-weight: 400;
	margin-left: 4px;
}

/* ==========================================================================
   4. NAVIGATION ANCHOR LINK INTERFACE
   ========================================================================== */
.nav-menu {
	display: flex;
	list-style: none;
	gap: 5px;
	align-items: center;
}

.nav-menu a.nav-link {
	color: var(--text-secondary);
	text-decoration: none;
	padding: 12px 20px;
	transition: color 0.25s ease;
	position: relative;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.5px;
	font-size: 13px;
}

.nav-menu a.nav-link::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--metal-dark), var(--accent-green));
	transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-menu a.nav-link:hover {
	color: var(--text-primary);
}

.nav-menu a.nav-link:hover::before {
	width: 75%;
}

/* ==========================================================================
   5. MEGA DROPDOWN PANEL DEPLOYMENT FRAMEWORK
   ========================================================================== */
.dropdown-wrapper {
	position: relative;
}

.arrow {
	font-size: 9px;
	margin-left: 4px;
	color: var(--text-dim);
	transition: transform 0.2s ease;
}

.mega-dropdown {
	position: absolute;
	top: 100%;
	right: calc(50% - 400px);
	width: 800px;
	background: linear-gradient(135deg, var(--carbon-medium), var(--carbon-dark));
	border: 1px solid rgba(82, 183, 136, 0.2);
	border-radius: 12px;
	padding: 30px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	
	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, visibility 0.3s ease;
}
/* Dynamic Trigger on Hover State Activation */
.dropdown-wrapper:hover .mega-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-wrapper:hover .arrow {
	transform: rotate(180deg);
	color: var(--accent-green);
}

.dropdown-column {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dropdown-column h3 {
	font-size: 13px;
	color: var(--accent-cyan);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
	font-weight: 700;
	border-bottom: 1px solid rgba(82, 183, 136, 0.15);
	padding-bottom: 6px;
}

.dropdown-column a {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s ease, padding-left 0.2s ease;
	padding: 2px 0;
}

.dropdown-column a:hover {
	color: var(--text-primary);
	padding-left: 5px;
}

/* ==========================================================================
   6. MOBILE ADAPTIVE VIEWPORT NAVIGATION TRANSFORMS
   ========================================================================== */
.menu-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
	padding: 5px;
}

.menu-toggle span {
	width: 26px;
	height: 2px;
	background: var(--accent-green);
	margin: 3px 0;
	transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
	border-radius: 2px;
}

@media (max-width: 1024px) {
	.mega-dropdown {
		width: 650px;
		right: calc(50% - 325px);
		padding: 20px;
		gap: 15px;
	}
}

@media (max-width: 768px) {
	.menu-toggle { display: flex; }
	
	.nav-menu {
		position: fixed;
		left: -100%;
		top: 0;
		height: 100vh;
		width: 100%;
		flex-direction: column;
		background: rgba(5, 13, 10, 0.98);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		justify-content: center;
		padding: 80px 20px;
		gap: 10px;
		overflow-y: auto;
		transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
		border-right: 1px solid rgba(82, 183, 136, 0.1);
	}
	
	.nav-menu.active { left: 0; }
	
	.nav-menu a.nav-link {
		display: block;
		padding: 12px 25px;
		font-size: 16px;
		text-align: center;
	}
	
	.nav-menu a.nav-link::before { display: none; }
	
	/* Responsive Stack for Mobile Dropdowns Panels */
	.mega-dropdown {
		position: relative;
		top: 0;
		right: 0;
		width: 100%;
		grid-template-columns: 1fr;
		background: transparent;
		box-shadow: none;
		border: none;
		padding: 10px 0;
		display: none; /* Smooth vertical fallback row scaling */
		transform: none;
		opacity: 1;
		visibility: visible;
	}
	
	.dropdown-wrapper:hover .mega-dropdown { display: flex; flex-direction: column; gap: 15px; }
	.dropdown-column h3 { text-align: center; }
	.dropdown-column a { text-align: center; font-size: 14px; }
	
	/* Toggle State Transform Intersections */
	.menu-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 5px); }
	.menu-toggle.active span:nth-child(2) { opacity: 0; }
	.menu-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -5px); }
}

/* FIXED: Removed the messy, duplicate light-mode components block entirely.
   Your structured sub-pages now rely cleanly on product.css and theme-style.css without style layer bleeding. */
