/* ==========================================================================
   Alaina Engineering - Theme-Specific Layout Settings & Core Focal Spacing
   (Global resets, color tokens, and carbon backgrounds handled by style.css)
   ========================================================================== */

/* 1. Core Structural Layout Padding Adjustments */
.home-hero {
	padding-top: 130px; /* Generous gap margin prevents navigation menu collisions */
	padding-bottom: 40px;
}

.section-header {
	text-align: center;
	margin-bottom: 20px;
}

.section-header h1 {
	font-size: 2.2rem;
	color: var(--text-primary);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.section-header p {
	font-size: 1rem;
	color: var(--accent-green);
	font-weight: 500;
}

.badge-glow {
	display: inline-block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	background: rgba(82, 183, 136, 0.1);
	border: 1px solid var(--metal-dark);
	padding: 4px 12px;
	border-radius: 20px;
	color: var(--accent-cyan);
	margin-bottom: 12px;
}
/* ==========================================================================
   Part 2: Hardware-Accelerated 3D Carousel & Image Presentation Layer
   ========================================================================== */

/* 1. 3D Focal Chamber Settings */
.carousel-container {
	width: 100%;
	max-width: 1200px;
	height: 600px;
	margin: 0 auto;
	perspective: 1400px; /* Establishes visual depth */
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.carousel {
	width: 100%;
	height: 100%;
	position: relative;
	transform-style: preserve-3d; /* Allows elements to move forward/backward in 3D space */
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item {
	position: absolute;
	width: 360px;
	height: 520px;
	left: calc(50% - 180px);
	top: calc(50% - 260px);
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, visibility 0.6s ease;
	z-index: 1;
}

/* 2. Premium Dark-Green Product Card Design */
.product-home-card {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--carbon-medium), var(--carbon-dark));
	border: 2px solid var(--carbon-light);
	border-radius: 20px;
	padding: 25px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	display: flex;
	flex-direction: column;
}

/* Interactive Futuristic Scanline Overlay */
.product-home-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(116, 198, 157, 0.3), transparent);
	animation: scanline 4s linear infinite;
	pointer-events: none;
	z-index: 3;
}

@keyframes scanline {
	0% { transform: translateY(0); }
	100% { transform: translateY(600px); }
}

.card-number {
	position: absolute;
	top: 15px;
	right: 25px;
	font-size: 64px;
	font-weight: 900;
	color: rgba(82, 183, 136, 0.04);
	font-family: monospace;
	pointer-events: none;
	line-height: 1;
}

/* 3. Image Presentation Controls (FIXED: Combined duplicates and locked padding) */
.card-img-wrapper {
	width: 100%;
	height: 400px;
	background: var(--primary-black);
	border-radius: 10px;
	margin-bottom: 18px;
	overflow: hidden;
	border: 1px solid var(--carbon-light);
}

.card-img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover !important;  /* Keeps entire light pole visible on screen */
	padding: 1px !important;        /* Prevents images from touching borders */
	filter: grayscale(30%) contrast(1.1);
	object-position: center; /* anchors crop to top of image */
	transition: transform 0.4s ease, filter 0.4s ease;
}

.carousel-item:hover .card-img-wrapper img {
	filter: grayscale(0%) contrast(1.15);
	transform: scale(1.04);
}

/* 4. Text Content Formatting */
.card-text-wrapper {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.card-text-wrapper h3 {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.card-text-wrapper p {
	color: var(--text-secondary);
	line-height: 1.4;
	margin-bottom: 15px;
	font-size: 13px;
}

.card-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 20px;
	margin-top: auto;
}

.tech-badge {
	padding: 3px 10px;
	background: rgba(82, 183, 136, 0.06);
	border: 1px solid rgba(82, 183, 136, 0.2);
	border-radius: 12px;
	font-size: 10px;
	color: var(--text-dim);
	text-transform: uppercase;
}

/* 5. Call To Action (CTA) Interface Buttons */
.card-cta {
	display: block;
	width: 100%;
	text-align: center;
	padding: 11px 20px;
	background: linear-gradient(135deg, var(--carbon-light), var(--metal-dark));
	border: 1px solid var(--metal-light);
	border-radius: 6px;
	color: var(--text-primary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 12px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.25s ease;
}

.carousel-item:hover .card-cta {
	background: linear-gradient(135deg, var(--accent-green), var(--carbon-light));
	border-color: var(--accent-cyan);
	color: var(--primary-black);
	box-shadow: 0 4px 15px rgba(82, 183, 136, 0.2);
}

/* 6. Carousel Navigation Interface Controls */
.carousel-controls {
	position: absolute;
	bottom: 0px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 20px;
	z-index: 100;
}

.carousel-btn {
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, var(--carbon-medium), var(--carbon-dark));
	border: 2px solid var(--carbon-light);
	border-radius: 50%;
	color: var(--accent-green);
	font-size: 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 20px rgba(0,0,0,0.4);
	transition: all 0.25s ease;
}

.carousel-btn:hover {
	border-color: var(--accent-green);
	color: var(--text-primary);
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(82, 183, 136, 0.2);
}

.carousel-indicators {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 100;
}

.indicator {
	width: 8px;
	height: 8px;
	background: var(--carbon-light);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
}

.indicator.active {
	background: var(--accent-green);
	box-shadow: 0 0 8px var(--accent-green);
	transform: scale(1.2);
}

.carousel-item.hidden-state {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
/* ==========================================================================
   Part 3: Philosophy Layout Blocks, Counter Metrics & Mobile Fallback Rules
   ========================================================================== */

/* 1. Alaina Engineering Corporate Philosophy Section */
.philosophy-section {
	padding: 90px 20px;
	background: linear-gradient(180deg, var(--primary-black) 0%, rgba(82, 183, 136, 0.02) 50%, var(--primary-black) 100%);
}

.philosophy-container {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

/* Sweeping Laser Line Matrix Line */
.prism-line {
	width: 100%;
	height: 1px;
	margin: 0 auto 40px;
	position: relative;
	overflow: hidden;
	background: var(--carbon-light);
}

.prism-line::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, var(--carbon-light), var(--accent-green), transparent);
	animation: prismSweep 6s ease-in-out infinite;
}

@keyframes prismSweep {
	0% { left: -100%; }
	100% { left: 100%; }
}

.philosophy-headline {
	font-size: 34px;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 20px;
	line-height: 1.3;
	background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.philosophy-subheading {
	font-size: 17px;
	color: var(--text-secondary);
	max-width: 750px;
	margin: 0 auto 55px;
	line-height: 1.6;
}

.philosophy-pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.pillar {
	padding: 35px 25px;
	background: linear-gradient(135deg, rgba(19, 42, 33, 0.2), rgba(11, 28, 21, 0.4));
	border: 1px solid var(--carbon-light);
	border-radius: 12px;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.pillar:hover {
	transform: translateY(-5px);
	border-color: var(--accent-green);
}

.pillar-icon { font-size: 32px; margin-bottom: 15px; }
.pillar-title { font-size: 1.2rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; color: var(--text-primary); }
.pillar-description { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* 2. Manufacturing Performance Metrics Counter Modules */
.stats-section { padding: 60px 0; }
.stats-section .section-title { font-size: 1.8rem; color: var(--text-primary); text-align: center; margin-bottom: 8px; text-transform: uppercase;}
.stats-section .section-subtitle { text-align: center; color: var(--text-dim); margin-bottom: 45px; font-size: 0.95rem; }

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 25px;
}

.stat-card {
	background: var(--carbon-dark);
	padding: 30px 20px;
	border-radius: 12px;
	text-align: center;
	border: 1px solid var(--carbon-light);
}

.stat-icon { font-size: 32px; margin-bottom: 10px; }
.stat-number { font-size: 2.3rem; font-weight: bold; color: var(--accent-green); margin-bottom: 5px; }
.stat-label { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; text-transform: uppercase;}
.stat-description { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }

.footer {
	padding: 30px 20px;
	background: var(--primary-black);
	border-top: 1px solid var(--carbon-light);
	text-align: center;
}

.copyright { color: var(--text-dim); font-size: 13px; }

/* ==========================================================================
   3. MOBILE VIEWPORT OPTIMIZATION RESPONSIVE MEDIA QUERIES
   (FIXED: Disabled heavy 3D depth matrices on handheld smartphones)
   ========================================================================== */
@media (max-width: 768px) {
	.home-hero { padding-top: 110px; }
	.section-header h1 { font-size: 1.8rem; }
	.section-header p { font-size: 0.95rem; }
	
	/* Flattens the carousel and items cleanly on handheld displays */
	.carousel-container { height: auto; min-height: auto; padding-top: 20px; }
	.carousel { display: flex; flex-direction: column; gap: 25px; height: auto; }
	.carousel-item { position: relative; left: 0; top: 0; width: 100%; height: auto; opacity: 1 !important; transform: none !important; }
	
	/* Hidden tracking mechanics removed from small touch screens */
	.carousel-controls, .carousel-indicators { display: none !important; }
	
	.philosophy-headline { font-size: 24px; }
	.philosophy-subheading { font-size: 15px; }
	.philosophy-pillars, .stats-grid { grid-template-columns: 1fr; }
}