/* =============================================================
 * ASE — Asset Solar and Electric
 * Identity: Navy #0F2A56  •  Red #A8252B  •  Cyan accents
 * Built on MaxsFramework Lite
 * ============================================================= */

:root {
	--ase-navy:      #0F2A56;
	--ase-navy-2:    #1B3A6E;
	--ase-navy-3:    #061a3b;
	--ase-red:       #A8252B;
	--ase-red-2:     #C62831;
	--ase-cyan:      #4FC3F7;
	--ase-cyan-2:    #29B6F6;
	--ase-text:      #222;
	--ase-muted:     #888;
	--ase-bg:        #f5f7fb;
}

::selection      { background: var(--ase-navy); color: #fff; }
::-moz-selection { background: var(--ase-navy); color: #fff; }
::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--ase-navy) 0%, var(--ase-red) 100%);
	border-radius: 5px;
}

body {
	background: #fff;
	text-align: center;
	color: var(--ase-text);
	font-family: maxs04, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Force the brand font on EVERY element so numbers, spans, buttons, small, etc. all match */
body, body *,
button, input, select, textarea,
span, small, strong, b, em, i, div, section, header, footer, nav,
.eyebrow, .stat strong, .stat span, .tag,
.lightbox-counter, .lightbox-counter span,
.hero-content small, .scroll-down,
.nav-logo span, .navbar a {
	font-family: maxs04, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
/* Latin/numeric digits look best when wrapped in dir=ltr */
[dir="ltr"] {
	font-family: maxs04, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	font-feature-settings: "tnum" 1;
}
a { color: var(--ase-navy); }
a:hover { color: var(--ase-red); }
img { vertical-align: middle; }
section { scroll-margin-top: 80px; }

/* =====================================================
 * NAVBAR (sticky, shows on scroll-up)
 * ===================================================== */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 14px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: transform .35s cubic-bezier(.4,0,.2,1), background .3s, box-shadow .3s, padding .3s;
	transform: translateY(0);
	background: transparent;
}
.navbar.scrolled {
	background: rgba(15, 42, 86, .95);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 6px 24px rgba(0,0,0,.18);
	padding: 10px 24px;
}
.navbar.hidden { transform: translateY(-110%); }

.navbar .nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 700;
}
.navbar .nav-logo img {
	width: 38px;
	height: 38px;
	object-fit: contain;
}
.navbar .nav-logo span {
	font-size: 17px;
	letter-spacing: .5px;
}
.navbar ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 8px;
}
.navbar li a {
	color: rgba(255,255,255,.85);
	padding: 8px 14px;
	font-size: 15px;
	border-radius: 8px;
	position: relative;
	transition: .25s;
}
.navbar li a:hover, .navbar li.ac a { color: #fff; background: rgba(255,255,255,.08); }
.navbar li a::after {
	content: '';
	position: absolute;
	bottom: 2px;
	right: 50%;
	width: 0;
	height: 2px;
	background: var(--ase-red-2);
	transition: .3s;
}
.navbar li a:hover::after, .navbar li.ac a::after { right: 14px; width: calc(100% - 28px); }

.nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}
.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	margin: 0 auto;
	transition: .3s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media all and (max-width: 860px) {
	.nav-toggle { display: flex; }
	.navbar ul {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(15, 42, 86, .98);
		backdrop-filter: blur(10px);
		flex-direction: column;
		padding: 16px;
		gap: 4px;
		max-height: 0;
		overflow: hidden;
		transition: max-height .35s ease, padding .35s ease;
	}
	body.nav-open .navbar ul { max-height: 400px; padding: 16px; }
	body:not(.nav-open) .navbar ul { padding: 0 16px; }
	.navbar li a { display: block; }
}

/* =====================================================
 * HERO — Split layout with animated SVG illustration
 * Compact: ~640px desktop, auto on mobile
 * ===================================================== */
header {
	position: relative;
	overflow: hidden;
	color: #fff;
	padding: 130px 6% 60px;
	background:
		radial-gradient(circle at 85% 20%, rgba(168,37,43,.18) 0%, transparent 45%),
		radial-gradient(circle at 15% 80%, rgba(79,195,247,.14) 0%, transparent 45%),
		linear-gradient(135deg, var(--ase-navy-3) 0%, var(--ase-navy) 60%, var(--ase-navy-2) 100%);
}
.hero-bg {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(79,195,247,.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(79,195,247,.04) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
	pointer-events: none;
}

.hero-wrap {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3em;
	align-items: center;
	position: relative;
	z-index: 2;
}

.hero-text {
	text-align: right;
	animation: 1s ease-out hero-text-in;
}
@keyframes hero-text-in {
	0% { opacity: 0; transform: translateX(40px); }
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px;
	background: rgba(79,195,247,.12);
	border: 1px solid rgba(79,195,247,.3);
	border-radius: 50px;
	font-size: 13px;
	color: var(--ase-cyan);
	margin-bottom: 1.4em;
}
.hero-badge .dot {
	width: 8px;
	height: 8px;
	background: var(--ase-cyan);
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(79,195,247,.7);
	animation: dot-pulse 2s infinite;
}
@keyframes dot-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(79,195,247,.7); }
	70%  { box-shadow: 0 0 0 10px rgba(79,195,247,0); }
	100% { box-shadow: 0 0 0 0 rgba(79,195,247,0); }
}

.hero-text h1 {
	font-size: 2.7em;
	color: #fff;
	margin: 0 0 .5em;
	line-height: 1.25;
	letter-spacing: .3px;
}
.hero-text h1 .brand-en {
	display: block;
	font-size: 12px;
	color: var(--ase-cyan);
	letter-spacing: 6px;
	margin-bottom: 14px;
	font-weight: 600;
	opacity: .9;
}
.hero-text .lead {
	font-size: 16px;
	color: rgba(255,255,255,.78);
	line-height: 1.9;
	margin-bottom: 2em;
	max-width: 480px;
}

.hero-cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 2.5em;
}
.hero-cta a {
	padding: 13px 26px;
	border-radius: 12px;
	font-weight: bold;
	font-size: 15px;
	transition: .3s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
}
.hero-cta .btn-primary {
	background: linear-gradient(135deg, var(--ase-red) 0%, var(--ase-red-2) 100%);
	box-shadow: 0 10px 24px rgba(168,37,43,.4);
}
.hero-cta .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(168,37,43,.55); color: #fff; }
.hero-cta .btn-ghost {
	background: rgba(255,255,255,.06);
	border: 1.5px solid rgba(255,255,255,.18);
}
.hero-cta .btn-ghost:hover {
	background: rgba(37,211,102,.15);
	border-color: #25D366;
	color: #fff;
	transform: translateY(-3px);
}

.hero-mini-stats {
	display: flex;
	gap: 1.6em;
	padding-top: 1.6em;
	border-top: 1px solid rgba(255,255,255,.08);
}
.hero-mini-stats > div { text-align: right; }
.hero-mini-stats strong {
	display: block;
	color: var(--ase-cyan);
	font-size: 1.6em;
	line-height: 1;
	margin-bottom: 4px;
}
.hero-mini-stats span {
	font-size: 12px;
	color: rgba(255,255,255,.6);
	letter-spacing: 1px;
}

/* ===== Hero visual (animated SVG) ===== */
.hero-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: 1.2s ease-out .15s both hero-visual-in;
}
@keyframes hero-visual-in {
	0% { opacity: 0; transform: translateX(-30px) scale(.95); }
}
.hero-svg {
	width: 100%;
	max-width: 460px;
	height: auto;
	display: block;
	filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}

/* Rings rotating around the system */
.ring-outer { transform-origin: 200px 200px; animation: ring-spin 60s linear infinite; }
.ring-mid   { transform-origin: 200px 200px; animation: ring-spin 40s linear infinite reverse; }
@keyframes ring-spin { 100% { transform: rotate(360deg); } }

/* Sun pulsing + rotating rays */
.hero-sun { animation: sun-bob 5s ease-in-out infinite; transform-origin: center; }
@keyframes sun-bob {
	0%, 100% { transform: translate(110px, 95px) scale(1); }
	50%      { transform: translate(110px, 95px) scale(1.08); }
}
.sun-rays-group {
	transform-origin: center;
	animation: sun-rays-rotate 18s linear infinite;
}
@keyframes sun-rays-rotate { 100% { transform: rotate(360deg); } }

/* Energy beams from sun to panel — flickering */
.beam {
	stroke-dasharray: 6 4;
	stroke-dashoffset: 0;
	animation: beam-flow 1.4s linear infinite;
}
.beam-1 { animation-delay: 0s; }
.beam-2 { animation-delay: -.4s; }
.beam-3 { animation-delay: -.8s; }
@keyframes beam-flow {
	0%   { stroke-dashoffset: 0; opacity: .3; }
	50%  { opacity: 1; }
	100% { stroke-dashoffset: -20; opacity: .3; }
}

/* Solar panel cells shimmer */
.panel-cells-anim rect {
	animation: cell-shimmer 3s ease-in-out infinite;
	transform-origin: center;
}
.panel-cells-anim rect:nth-child(4n)   { animation-delay: 0s; }
.panel-cells-anim rect:nth-child(4n+1) { animation-delay: .3s; }
.panel-cells-anim rect:nth-child(4n+2) { animation-delay: .6s; }
.panel-cells-anim rect:nth-child(4n+3) { animation-delay: .9s; }
@keyframes cell-shimmer {
	0%, 100% { opacity: .85; }
	50%      { opacity: 1; filter: brightness(1.3); }
}

/* Flowing dashed line panel -> battery */
.flow-path {
	animation: flow-dash 2s linear infinite;
}
@keyframes flow-dash {
	0%   { stroke-dashoffset: 0; }
	100% { stroke-dashoffset: -24; }
}

/* Battery filling */
.hero-battery-fill {
	transform-origin: bottom;
	animation: battery-fill-anim 4s ease-in-out infinite;
}
@keyframes battery-fill-anim {
	0%   { transform: scaleY(.15); fill: #FF5252; }
	40%  { transform: scaleY(.55); fill: #FFA726; }
	80%  { transform: scaleY(1);   fill: #4CAF50; }
	100% { transform: scaleY(.15); fill: #FF5252; }
}
.battery-icon-bolt { animation: bolt-pulse-hero 1.4s ease-in-out infinite; transform-origin: center; }
@keyframes bolt-pulse-hero {
	0%, 100% { opacity: .8; transform: scale(1); }
	50%      { opacity: 1; transform: scale(1.15); }
}

/* Output to house */
.output-lightning path { animation: flow-dash 1.5s linear infinite; }
.output-lightning circle:nth-child(2) {
	transform-origin: 362px 362px;
	animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
	0%   { opacity: .6; transform: scale(.6); }
	100% { opacity: 0;  transform: scale(2.2); }
}

/* Floating dots */
.float-dot { opacity: .6; animation: dot-float 6s ease-in-out infinite; }
.float-dot.dot-1 { animation-delay: 0s; }
.float-dot.dot-2 { animation-delay: -2s; }
.float-dot.dot-3 { animation-delay: -4s; }
@keyframes dot-float {
	0%, 100% { transform: translate(0, 0); opacity: .6; }
	50%      { transform: translate(8px, -12px); opacity: 1; }
}

/* =====================================================
 * SECTION HEADINGS (shared)
 * ===================================================== */
.sec-head { text-align: center; margin-bottom: 3em; }
.sec-head .eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 4px;
	color: var(--ase-red);
	background: rgba(168,37,43,.08);
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 1em;
}
.sec-head h2 {
	color: var(--ase-navy);
	margin: 0 0 .4em;
	font-size: 2.2em;
}
.sec-head p { color: var(--ase-muted); max-width: 600px; margin: 0 auto; line-height: 1.8; }
[data-theme="dark"] .sec-head h2 { color: #fff; }
[data-theme="dark"] .sec-head p { color: rgba(255,255,255,.75); }
[data-theme="dark"] .sec-head .eyebrow { background: rgba(79,195,247,.12); color: var(--ase-cyan); }

/* =====================================================
 * ABOUT SECTION (improved)
 * ===================================================== */
#about {
	padding: 7em 8% 5em;
	background:
		radial-gradient(circle at 90% 10%, rgba(168,37,43,.04) 0%, transparent 40%),
		#fff;
	position: relative;
	overflow: hidden;
}
.about-wrap {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4em;
	align-items: center;
	text-align: right;
}
.about-image {
	position: relative;
}
.about-image .frame {
	position: relative;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(15,42,86,.25);
}
.about-image .frame img {
	width: 100%;
	height: 460px;
	object-fit: cover;
	display: block;
	transition: transform 1s;
}
.about-image:hover .frame img { transform: scale(1.05); }
.about-image::before {
	content: '';
	position: absolute;
	top: 30px;
	right: -30px;
	width: 100%;
	height: 100%;
	border: 4px solid var(--ase-red);
	border-radius: 22px;
	z-index: -1;
	transition: .5s;
}
.about-image::after {
	content: '';
	position: absolute;
	bottom: -30px;
	left: -30px;
	width: 120px;
	height: 120px;
	background: var(--ase-cyan);
	border-radius: 18px;
	z-index: -1;
	opacity: .15;
}
.about-image:hover::before { top: 20px; right: -20px; }

.about-content .eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 4px;
	color: var(--ase-red);
	background: rgba(168,37,43,.08);
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 1em;
}
.about-content h2 {
	color: var(--ase-navy);
	margin: 0 0 .8em;
	font-size: 2.2em;
	line-height: 1.3;
}
.about-content h2 span { color: var(--ase-red); }
.about-content p {
	color: #555;
	line-height: 2;
	margin-bottom: 1em;
}

.feature-list {
	list-style: none;
	padding: 0;
	margin: 1.6em 0;
}
.feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 10px 0;
}
.feature-list .check {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	background: linear-gradient(135deg, var(--ase-navy) 0%, var(--ase-navy-2) 100%);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(15,42,86,.2);
}
.feature-list .check svg { width: 16px; height: 16px; fill: #fff; }
.feature-list span { color: #333; font-weight: 500; line-height: 32px; }

.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1em;
	margin-top: 2em;
}
.stat {
	background: linear-gradient(160deg, var(--ase-navy) 0%, var(--ase-navy-2) 100%);
	color: #fff;
	padding: 1.4em 1em;
	border-radius: 16px;
	text-align: center;
	box-shadow: 0 8px 22px rgba(15,42,86,.18);
	transition: .3s;
	position: relative;
	overflow: hidden;
}
.stat::before {
	content: '';
	position: absolute;
	top: -20px;
	left: -20px;
	width: 60px;
	height: 60px;
	background: var(--ase-red);
	border-radius: 50%;
	opacity: .25;
	transition: .5s;
}
.stat:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(15,42,86,.3); }
.stat:hover::before { transform: scale(2); opacity: .35; }
.stat strong {
	display: block;
	font-size: 2.2em;
	color: var(--ase-cyan);
	margin-bottom: 6px;
	position: relative;
}
.stat span { font-size: 14px; opacity: .9; position: relative; }

/* =====================================================
 * PRODUCTS (improved with animated SVG)
 * ===================================================== */
#products {
	padding: 6em 1em 5em;
	background: linear-gradient(180deg, #f5f7fb 0%, #e9eef7 100%);
	position: relative;
}
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1em;
}
.product-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	text-align: right;
	transition: .4s;
	box-shadow: 0 10px 30px rgba(15,42,86,.08);
	position: relative;
}
.product-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 24px 50px rgba(15,42,86,.2);
}
.product-card .visual {
	height: 180px;
	background: linear-gradient(135deg, var(--ase-navy) 0%, var(--ase-navy-2) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}
.product-card .visual::before {
	content: '';
	position: absolute;
	bottom: -40px;
	right: -40px;
	width: 160px;
	height: 160px;
	background: var(--ase-red);
	border-radius: 32px;
	transform: rotate(20deg);
	opacity: .35;
	transition: .5s;
}
.product-card:hover .visual::before { transform: rotate(35deg) scale(1.1); }
.product-card .visual svg { width: 110px; height: 110px; position: relative; z-index: 2; }
.product-card .body { padding: 1.6em 1.6em 1.8em; }
.product-card h4 { color: var(--ase-navy); margin-bottom: 0.6em; font-size: 1.35em; }
.product-card p { color: #666; font-size: 15px; line-height: 1.85; margin-bottom: 1em; }
.product-card .tag {
	display: inline-block;
	background: rgba(15,42,86,.06);
	color: var(--ase-navy);
	font-size: 12px;
	padding: 5px 14px;
	border-radius: 20px;
	font-weight: 600;
}

/* SVG illustrations animations */
.solar-panel-cells { animation: panel-shine 4s ease-in-out infinite; transform-origin: center; }
@keyframes panel-shine {
	0%, 100% { opacity: .85; }
	50%      { opacity: 1; filter: drop-shadow(0 0 10px rgba(79,195,247,.6)); }
}
.solar-rays { transform-origin: 30px 30px; animation: rays-rotate 12s linear infinite; }
@keyframes rays-rotate { 100% { transform: rotate(360deg); } }

.battery-fill { animation: battery-charge 2.6s ease-in-out infinite; transform-origin: center; }
@keyframes battery-charge {
	0%   { transform: scaleY(.2); transform-origin: bottom; opacity: .6; }
	50%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
	100% { transform: scaleY(.2); transform-origin: bottom; opacity: .6; }
}
.battery-bolt { animation: bolt-pulse 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes bolt-pulse {
	0%, 100% { opacity: .7; transform: scale(1); }
	50%      { opacity: 1; transform: scale(1.15); }
}

.inverter-wave { stroke-dasharray: 80; stroke-dashoffset: 80; animation: wave-flow 2.4s linear infinite; }
@keyframes wave-flow { 100% { stroke-dashoffset: -80; } }

/* =====================================================
 * SERVICES
 * ===================================================== */
#services {
	padding: 6em 8% 5em;
	background: var(--ase-navy);
	color: #fff;
	position: relative;
	overflow: hidden;
}
#services::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
	background-size: 50px 50px;
}
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}
.service {
	padding: 2.2em 1.6em;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 16px;
	transition: .3s;
	position: relative;
	overflow: hidden;
}
.service::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(168,37,43,.15) 0%, transparent 60%);
	opacity: 0;
	transition: .35s;
}
.service:hover {
	background: rgba(255,255,255,.07);
	border-color: var(--ase-red);
	transform: translateY(-6px);
}
.service:hover::after { opacity: 1; }
.service .ico {
	width: 60px;
	height: 60px;
	margin: 0 auto 1.2em;
	background: linear-gradient(135deg, var(--ase-red) 0%, var(--ase-red-2) 100%);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 18px rgba(168,37,43,.4);
	position: relative;
	z-index: 2;
	transition: .3s;
}
.service:hover .ico { transform: rotate(-8deg) scale(1.08); }
.service .ico svg { width: 30px; height: 30px; fill: #fff; }
.service h4 { color: #fff; margin-bottom: 0.6em; font-size: 1.15em; position: relative; z-index: 2; }
.service p { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.8; position: relative; z-index: 2; }

/* =====================================================
 * GALLERY (with lightbox)
 * ===================================================== */
#gallery {
	padding: 6em 1em 5em;
	background: #fff;
}
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1em;
}
.gallery-grid .gi {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 14px;
	cursor: pointer;
	transition: .3s;
	display: block;
}
.gallery-grid .gi img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: .5s;
}
.gallery-grid .gi::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(15,42,86,.85) 100%);
	opacity: 0;
	transition: .3s;
	z-index: 1;
}
.gallery-grid .gi::after {
	content: '+';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(.5);
	width: 50px;
	height: 50px;
	background: var(--ase-red);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	opacity: 0;
	transition: .35s;
	z-index: 2;
	font-weight: 300;
	line-height: 1;
}
.gallery-grid .gi:hover img { transform: scale(1.08); }
.gallery-grid .gi:hover::before { opacity: 1; }
.gallery-grid .gi:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(8, 18, 39, .96);
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .3s;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-img-wrap {
	position: relative;
	max-width: 92vw;
	max-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox img {
	max-width: 92vw;
	max-height: 88vh;
	border-radius: 12px;
	box-shadow: 0 24px 60px rgba(0,0,0,.6);
	display: block;
	width: auto;
	transition: opacity .25s;
}
.lightbox img.fading { opacity: 0; }
.lightbox-close, .lightbox-prev, .lightbox-next {
	position: absolute;
	background: rgba(255,255,255,.1);
	color: #fff;
	border: 0;
	padding: 0;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: .25s;
	backdrop-filter: blur(8px);
	font-size: 22px;
	z-index: 1000;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
	background: var(--ase-red);
	transform: scale(1.08);
}
.lightbox-close { top: 18px; left: 18px; }
.lightbox-prev  { top: 50%; right: 18px; transform: translateY(-50%); }
.lightbox-next  { top: 50%; left:  18px; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-prev svg, .lightbox-next svg { width: 22px; height: 22px; fill: currentColor; }
.lightbox-counter {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,.7);
	font-size: 14px;
	background: rgba(0,0,0,.4);
	padding: 6px 14px;
	border-radius: 20px;
	backdrop-filter: blur(6px);
}

/* =====================================================
 * CONTACT
 * ===================================================== */
#contact {
	padding: 6em 1.5em 5em;
	background: linear-gradient(135deg, var(--ase-navy-3) 0%, var(--ase-navy) 100%);
	color: #fff;
	text-align: center;
	position: relative;
	overflow: hidden;
}
#contact::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 40px 40px;
}
#contact .wrap { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
#contact p { color: rgba(255,255,255,.85); font-size: 17px; line-height: 1.9; margin-bottom: 2em; }
.wa-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 36px;
	background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
	color: #fff;
	border-radius: 60px;
	font-size: 1.1em;
	font-weight: bold;
	box-shadow: 0 10px 30px rgba(37,211,102,.35);
	transition: .3s;
}
.wa-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 40px rgba(37,211,102,.5);
	color: #fff;
}
.wa-btn svg { width: 28px; height: 28px; fill: #fff; }
.contact-info {
	margin-top: 2em;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2em;
	color: rgba(255,255,255,.85);
}
.contact-info a {
	color: rgba(255,255,255,.85);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.contact-info a:hover { color: var(--ase-cyan); }
.contact-info svg { width: 18px; height: 18px; fill: currentColor; }

/* =====================================================
 * FOOTER (improved)
 * ===================================================== */
footer {
	background: #0a1d3d;
	color: #b8c5dc;
	position: relative;
	overflow: hidden;
}
footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #162f57 0%, var(--ase-cyan) 50%, #162f57 100%);
}
.footer-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 4em 6% 2em;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 2.5em;
	text-align: right;
}
.footer-col h4 {
	color: #fff;
	font-size: 1.05em;
	margin-bottom: 1.4em;
	position: relative;
	padding-bottom: 10px;
}
.footer-col h4::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 40px;
	height: 3px;
	background: var(--ase-red);
	border-radius: 2px;
}
.footer-brand img {
	width: 180px;
	margin-bottom: 1em;
}
.footer-brand p {
	color: #95a3bd;
	line-height: 1.9;
	font-size: 14px;
	margin-bottom: 1.4em;
}
.footer-brand .social {
	display: flex;
	gap: 10px;
}
.footer-brand .social a {
	width: 38px;
	height: 38px;
	background: rgba(255,255,255,.06);
	border-radius: 10px;
	color: #b8c5dc;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: .25s;
}
.footer-brand .social a:hover {
	background: var(--ase-red);
	color: #fff;
	transform: translateY(-3px);
}
.footer-brand .social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 10px 0; }
.footer-col a {
	color: #95a3bd;
	font-size: 14px;
	transition: .2s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.footer-col a::before {
	content: '';
	width: 6px;
	display: none;
	height: 6px;
	background: var(--ase-red);
	border-radius: 50%;
	opacity: 0;
	transform: translateX(8px);
	transition: .25s;
}
.footer-col a:hover { color: #fff; }
.footer-col a:hover::before { opacity: 1; transform: translateX(0); }

.footer-contact .item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
	color: #95a3bd;
	font-size: 14px;
}
.footer-contact .item svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	fill: var(--ase-cyan);
	margin-top: 3px;
}
.footer-contact a { color: #b8c5dc; }
.footer-contact a:hover { color: var(--ase-cyan); }

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.06);
	padding: 1.5em 6%;
	display: flex;
	background: #040e1e;
	/* justify-content: space-between; */
	align-items: center;
	flex-wrap: wrap;
	gap: 1em;
	color: #7889a8;
	font-size: 13px;
}
.footer-bottom a { color: var(--ase-cyan); }
.footer-bottom .credit { font-size: 12px; }

@media all and (max-width: 860px) {
	.footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 2em;
	}
	.footer-bottom { flex-direction: column; text-align: center; }
}
@media all and (max-width: 540px) {
	.footer-main { grid-template-columns: 1fr; gap: 2em; text-align: center; }
	.footer-col h4::after { right: 50%; transform: translateX(50%); }
	.footer-brand .social { justify-content: center; }
	.footer-contact .item { justify-content: center; }
}

/* =====================================================
 * FAB (floating WhatsApp)
 * ===================================================== */
.fab-wa {
	position: fixed;
	bottom: 22px;
	left: 22px;
	width: 56px;
	height: 56px;
	background: #25D366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 90;
	box-shadow: 0 8px 24px rgba(37,211,102,.45);
	transition: .25s;
	animation: pulse-wa 2.5s ease-in-out infinite;
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pulse-wa {
	0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45); }
	50%      { box-shadow: 0 8px 28px rgba(37,211,102,.85), 0 0 0 12px rgba(37,211,102,0); }
}

/* =====================================================
 * SCROLL ANIMATIONS
 * ===================================================== */
.av {
	opacity: 0;
	transform: translateX(-80px);
	transition: 1s;
}
.av.T  { transform: translateY(80px); }
.av.B  { transform: translateY(-80px); }
.av.L  { transform: translateX(80px); }
.av.R  { transform: translateX(-80px); }
.av.RoX { transform: scaleX(2); }
.av.ac_an { opacity: 1; transform: none; }

/* =====================================================
 * REDUCED MOTION — respect user preferences
 * ===================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.hero-sun, .sun-rays-group, .ring-outer, .ring-mid,
	.beam, .panel-cells-anim rect, .flow-path,
	.hero-battery-fill, .battery-icon-bolt,
	.output-lightning path, .output-lightning circle,
	.float-dot, .hero-badge .dot, .fab-wa { animation: none !important; }
}

/* =====================================================
 * RESPONSIVE
 * ===================================================== */
@media all and (max-width: 960px) {
	header { padding: 110px 5% 50px; }
	.hero-wrap { grid-template-columns: 1fr; gap: 2em; text-align: center; }
	.hero-text { text-align: center; }
	.hero-text .lead { margin-left: auto; margin-right: auto; }
	.hero-text h1 { font-size: 2.1em; }
	.hero-cta { justify-content: center; }
	.hero-mini-stats { justify-content: center; }
	.hero-svg { max-width: 340px; }
	#about { padding: 5em 6%; }
	.about-wrap { grid-template-columns: 1fr; gap: 3em; }
	.about-image { max-width: 480px; margin: 0 auto; }
	.about-image .frame img { height: 360px; }
	#services { padding: 5em 6%; }
}
@media all and (max-width: 640px) {
	.navbar { padding: 12px 16px; }
	.navbar.scrolled { padding: 8px 16px; }
	.navbar .nav-logo span { font-size: 14px; }
	header { padding: 90px 5% 40px; }
	.hero-text h1 { font-size: 1.7em; }
	.hero-text .lead { font-size: 14px; }
	.hero-cta a { padding: 11px 20px; font-size: 14px; }
	.hero-mini-stats { gap: 1em; }
	.hero-mini-stats strong { font-size: 1.3em; }
	.hero-svg { max-width: 280px; }
	#about, #services { padding: 4em 5%; }
	#products, #gallery, #contact { padding: 4em .8em; }
	.about-content h2 { font-size: 1.7em; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stats .stat:last-child { grid-column: 1 / -1; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.contact-info { flex-direction: column; gap: 1em; }
	.fab-wa { width: 48px; height: 48px; bottom: 16px; left: 16px; }
	.fab-wa svg { width: 24px; height: 24px; }
	.lightbox-close, .lightbox-prev, .lightbox-next { width: 42px; height: 42px; }
}
