/* ==========================================================================
   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: -20px;
	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; }

/* ==========================================================================
   PRODUCTION INDUSTRIAL SHOWROOM FOOTER RULES
   ========================================================================== */
.footer {
	padding: 60px 30px 30px;
	background: var(--primary-black);             /* Deep rich dark carbon green */
	border-top: 1px solid var(--metal-dark);       /* Medium green border tint */
	position: relative;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer-logo {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	text-decoration: none;
}

.footer-description {
	color: var(--text-secondary);                  /* Light mint green body description */
	line-height: 1.6;
	font-size: 14px;
}
.footer-logo .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Compliance Safety Badge */
.safety-badge {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--carbon-dark);          /* Secure secondary dark background */
    border: 1px solid var(--metal-dark);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);                    /* Industrial safety warning gold */
    letter-spacing: 0.5px;
}

.footer-social {
	display: flex;
	gap: 15px;
}

.social-icon {
	width: 40px;
	height: 40px;
	background: var(--carbon-medium);              /* Panel structural green box */
	border: 1px solid var(--metal-dark);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	text-decoration: none;
	transition: all 0.3s ease;
}

.social-icon:hover {
	background: var(--carbon-light);               /* Highlight brand forest green */
	border-color: var(--accent-green);             /* Soft crisp mint green border */
	color: var(--text-primary);                    /* Pure sharp white icon */
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(82, 183, 136, 0.2); /* Soft mint theme shadow glow */
}

.footer-section h4 {
	color: var(--text-primary);                    /* Pure white headers */
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 16px;
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-links a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 14px;
}

.footer-links a:hover {
	color: var(--accent-cyan);                     /* High visibility active hover mint */
	padding-left: 10px;
}

.footer-bottom {
	padding-top: 30px;
	border-top: 1px solid var(--metal-dark);
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.copyright {
	color: var(--text-dim);                        /* Subdued label metadata color */
	font-size: 14px;
}

.footer-credits {
	color: var(--text-dim);
	font-size: 14px;
}

.footer-credits a {
	color: var(--accent-green);                    /* Soft crisp mint green attribution link */
	text-decoration: none;
}

.footer-credits a:hover {
	text-decoration: underline;
	color: var(--accent-cyan);
}

/* Responsive Grid Adaptation for Mobile Screens */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}


/* ==========================================================================
   3. MOBILE VIEWPORT OPTIMIZATION RESPONSIVE MEDIA QUERIES
   (FIXED: Disabled heavy 3D depth matrices on handheld smartphones)
   ========================================================================== */
@media (max-width: 768px) {
    /* --- YOUR EXISTING RULES STAY UNCHANGED --- */
    .home-hero { padding-top: 110px; }
    .section-header h1 { font-size: 1.8rem; }
    .section-header p { font-size: 0.95rem; }
    .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; }
    .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; }

    /* --- ADD THESE NAV FIXES BELOW --- */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--carbon-dark);
        padding: 80px 30px 30px;
        z-index: 999;
        gap: 5px;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 1px solid var(--carbon-light);
        white-space: nowrap; /* THIS fixes About Us and Project Status wrapping */
    }

    .mega-dropdown {
        display: none !important; /* hide dropdown columns on mobile */
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1000;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--text-primary);
        transition: all 0.3s ease;
    }

    /* Hamburger animates to X when menu is open */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Footer stacks on mobile */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}