/* style.css */
:root {
	--primary-color: #ffa602;
	--secondary-color: #00a75a; /* Green from the logo */
	--warning-color: #ff3333;
	--light-bg: #f5f5f5;
	--dark-bg: #101010;
	--dark-bg-alt: #1a1a1a;
	--text-light: #1c1c1c;
	--text-dark: #e5e5e5;
	--border-light: #ddd;
	--border-dark: #2f2f2f;
	--font-family: "Sora", sans-serif;
	--border-hover: #000;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Base Body Styles */
body {
	font-family: var(--font-family);
	background-color: var(--light-bg);
	color: var(--text-light);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overscroll-behavior-y: none;
}
.container {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 1.5rem; /* Added default padding for better spacing on mobile */
}
.text-center {
	text-align: center;
}

/* === PRELOADER STYLES === */
.preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--dark-bg);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: opacity 2s ease;
}
.preloader-logo-container {
	width: 200px;
	height: 200px;
}
.preloader-logo-container svg {
	width: 100%;
	height: auto;
	overflow: visible;
}
/* Initial state for animation */
#logo-outlines path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}
#logo-fill-yellow {
	clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
}
#logo-fill-green {
	clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
}

/* === HEADER === */
.main-header {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	/* max-width: 1300px; */
	padding: 10px 0;
	background-color: #ffffffbb;
	border-color: white;
	border-radius: 50px;
	border-width: 2px;
	border-style: solid;
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
	transition: border-color 0.5s, width 1.5s, border-radius 1.5s, transform 0.5s,
		opacity 0.5s, visibility 0.5s;
	z-index: 100;
}

.header-container {
	display: flex;
	justify-content: center; /* Center the nav container itself */
	align-items: center;
	padding: 0 3rem;
	width: 100%;
}

/* This is the main container for our 3 groups */
.header-container-nav {
	overflow: hidden;
	position: relative;
	display: flex;
	justify-content: space-evenly; /* Pushes left/right groups to edges */
	align-items: center;
	width: 100%;
	z-index: 1;
}

/* Styling for the left and right link groups */
.nav-group-left,
.nav-group-right {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 3rem; /* Modern way to add space between flex items */
	flex: 1; /* Allows the groups to grow and take up space */
}

/* Ensure the right group's content is aligned to the right */
.nav-group-right {
	right: 0;
}
.nav-group-left {
	left: 0;
}

.main-header .logo-img {
	height: 60px;
	transition: transform 0.3s ease;
	/* The image must be a block element for the hover to not cause a layout shift */
	display: block;
	transition: transform 0.5s;
}

/* General link styling */
.header-container-nav a {
	color: var(--text-light);
	text-decoration: none;
	font-weight: 600;
	/* margin-left is no longer needed because we use gap */
	position: relative;
	transition: color 0.3s ease;
	mix-blend-mode: overlay;
}

.header-container-nav a:hover {
	color: var(--primary-color);
}

.underline-yellow a::after {
	content: "";
	position: absolute;
	width: 100%;
	transform: scaleX(0);
	height: 2px;
	bottom: -4px;
	left: 0;
	background-color: var(--primary-color);
	transform-origin: bottom right;
	transition: transform 0.25s ease-out;
}

.underline-yellow a:hover::after {
	transform: scaleX(1);
	transform-origin: bottom left;
}

/* === GENERAL CONTENT & TYPOGRAPHY === */
.content-section {
	padding: clamp(5rem, 10vw, 8rem) 0;
}
.intro-text {
	font-size: clamp(0.9rem, 1.5vw, 1rem);
	font-weight: 600;
	color: #888;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.section-title {
	font-size: clamp(2.8rem, 6vw, 4rem);
	font-weight: 700;
	letter-spacing: -2px;
	line-height: 1.1;
	margin-bottom: 2rem;
}
.text-reveal-mask {
	display: inline-block;
	overflow: hidden;
	vertical-align: bottom;
}
.text-reveal-mask > span {
	display: inline-block;
}

/* === HERO SECTION === */
.hero-section {
	min-height: 100vh;
	position: relative;
	display: flex;
	align-items: center;
	color: white;
	background-color: #000;
	text-align: left;
}

.hero-content {
	position: relative;
	z-index: 1;
}
.hero-title {
	font-size: clamp(3.5rem, 8vw, 7rem);
	font-weight: 700;
	letter-spacing: -0.3vw;
	line-height: 1;
}
.hero-subtitle {
	font-size: clamp(1rem, 2vw, 1.2rem);
	max-width: 600px;
	color: #ccc;
	margin-top: 2rem;
	line-height: 1.6;
}

/* === ABOUT SECTION (MODIFIED FOR RESPONSIVENESS) === */
.about-container {
	display: grid;
	/* MODIFIED: Changed from 1fr 1fr to give more space to text */
	grid-template-columns: 1fr 1.2fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}
.about-image-wrapper {
	height: 500px;
	/* MODIFIED: width is now flexible */
	width: 100%;
	max-width: 450px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	/* MODIFIED: Use justify-self to align it within its grid cell */
	justify-self: end;
}
.about-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: filter 0.5s ease-in-out;
}
.about-image-wrapper:hover img {
	filter: grayscale(0%);
}
.about-text-wrapper p {
	max-width: 550px;
	margin-top: 2rem;
	line-height: 1.8;
	font-size: 1.1rem;
}

/* === PRODUCTS SECTION === */
.products-section {
	position: relative;
	background: var(--dark-bg);
	color: var(--text-dark);
}
.products-section .section-title,
.products-section .intro-text {
	color: white;
}
.product-filters {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin: 3rem 0 4rem;
	flex-wrap: wrap;
}
.filter-btn {
	background: transparent;
	color: #aaa;
	border: 1px solid var(--border-dark);
	padding: 12px 24px;
	border-radius: 30px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: var(--font-family);
	font-size: 0.95rem;
}
.filter-btn:hover {
	background: var(--dark-bg-alt);
	color: white;
	border-color: #555;
}
.filter-btn.active {
	background: var(--primary-color);
	color: var(--dark-bg);
	border-color: var(--primary-color);
	font-weight: 600;
}
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2.5rem;
}
.glass-card {
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 16px;
	border: 1px solid var(--border-dark);
	padding: 1.25rem;
	transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.glass-card:hover {
	transform: translateY(-10px);
	background: rgba(255, 255, 255, 0.07);
	box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}
.product-image-container {
	height: 250px;
	border-radius: 8px;
	overflow: hidden;
}
.product-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease-out;
}
.glass-card:hover .product-image-container img {
	transform: scale(1.05);
}
.product-info {
	padding: 1.5rem 0.5rem 0.5rem;
}
.product-info h3 {
	font-size: 1.3rem;
	color: white;
	margin-bottom: 0.5rem;
}
.product-info p {
	color: #aaa;
	font-size: 0.95rem;
	line-height: 1.6;
}

/* === DARK WRAPPER & SERVICES === */
.dark-wrapper {
	background: var(--dark-bg);
	color: var(--text-dark);
}
.dark-wrapper .section-title,
.dark-wrapper .intro-text {
	color: white;
}
.services-section {
	padding-bottom: 0;
}
.service-accordion {
	margin-top: 4rem;
	border-top: 1px solid var(--border-dark);
}
.service-item {
	border-bottom: 1px solid var(--border-dark);
	transition: height 0.5s ease-in-out;
}
.service-item-header {
	padding: 2.5rem 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}
.service-item-header h3 {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 500;
	color: #888;
	transition: color 0.4s ease;
}
.service-item:hover .service-item-header h3 {
	color: var(--primary-color);
}
.service-item.is-active .service-item-header h3 {
	color: white;
}
.service-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #555;
	position: relative;
	transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.4s;
	flex-shrink: 0;
	margin-left: 1rem;
}
.service-icon::before,
.service-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	background: white;
	transform: translate(-50%, -50%);
	border-radius: 1px;
}
.service-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.service-item.is-active .service-icon {
	transform: rotate(225deg);
	border-color: var(--primary-color);
}

.service-item-body {
	height: 0;
	overflow: hidden;
	transition: height 0.5s ease-in-out, padding 0.5s ease-in-out;
}
.service-item-body-content {
	padding-bottom: 2.5rem;
}
.service-item-body-content p {
	max-width: 650px;
	font-size: 1.1rem;
	line-height: 1.8;
	color: #bbb;
}

/* === CONTACT & FOOTER === */
.contact-section {
	padding-top: clamp(3rem, 6vw, 7rem);
	padding-bottom: clamp(3rem, 6vw, 7rem);
}
.contact-container {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 5rem;
	align-items: flex-start;
}
.contact-form {
	border: 2px solid var(--border-dark);
	border-radius: 12px;
	padding: 2rem;
}
.contact-form p {
	max-width: 450px;
	margin-bottom: 3rem;
	color: #888;
	font-size: 1.1rem;
}
.form-row {
	display: flex;
	gap: 2rem;
}
.contact-form input,
.contact-form textarea {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 2px solid var(--primary-color);
	color: white;
	padding: 1rem 0;
	margin-bottom: 2rem;
	font-family: var(--font-family);
	font-size: 1.1rem;
	transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--secondary-color);
}
.btn {
	background: var(--primary-color);
	color: var(--dark-bg);
	padding: 18px 40px;
	border-radius: 50px;
	font-weight: 700;
	text-decoration: none;
	border: none;
	display: inline-block;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
	font-size: 1rem;
}
.btn:hover {
	background: #e69500;
	transform: scale(1.05);
}
.site-footer {
	padding: 3rem 0;
	background: #000;
	color: #666;
	text-align: center;
	font-size: 0.9rem;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1024px) {
	/* MODIFIED: Stacking the About section for tablets and mobile */
	.about-container {
		grid-template-columns: 1fr; /* Change to a single column */
		gap: 4rem;
		text-align: center; /* Center-align the text for a cleaner look */
	}
	.about-image-wrapper {
		justify-self: center; /* Center the image in the grid cell */
		max-width: 500px;
		height: auto; /* Allow height to adjust to maintain aspect ratio */
		margin: 0 auto;
	}
	.about-text-wrapper {
		display: flex;
		flex-direction: column;
		align-items: center; /* Center child elements (like the <p>) */
	}
	.contact-container {
		grid-template-columns: 1fr;
		gap: 4rem;
	}
	.contact-text {
		text-align: center;
	}
	.contact-form p {
		margin: 0 auto 3rem;
	}
	.section-title {
		font-size: clamp(2.5rem, 8vw, 3rem);
	}
}

@media (max-width: 768px) {
	.content-section {
		padding: clamp(4rem, 8vw, 6rem) 0;
	}
	.main-header {
		display: none;
	}
	.header-container {
		justify-content: center; /* This will now correctly center the logo */
	}
	.hero-title {
		letter-spacing: -1px;
	}
	.form-row {
		flex-direction: column;
		gap: 0;
	}
	.service-item-header h3 {
		font-size: 1.8rem;
	}
	.service-icon {
		width: 35px;
		height: 35px;
	}
	.service-icon::before,
	.service-icon::after {
		width: 14px;
	}
}

@media (max-width: 480px) {
	/* The container padding was moved to the base .container rule */
	.product-grid {
		grid-template-columns: 1fr;
	}
	.filter-btn {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	.btn {
		padding: 16px 32px;
		width: 100%;
	}
}
/* === ENHANCED FOOTER STYLES === */
.site-footer {
	padding: clamp(3rem, 6vw, 6rem) 0 0;
	background: var(--dark-bg);
	color: #999;
}

.footer-main {
	display: grid;
	grid-template-columns: 2fr 1fr 1.5fr 1fr;
	gap: 3rem;
	padding-bottom: 4rem;
}

.footer-column h4 {
	color: white;
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	font-weight: 600;
}

.footer-logo {
	max-width: 150px;
	margin-bottom: 1.5rem;
}

.footer-about-text {
	line-height: 1.7;
	padding-right: 2rem;
}

.links-column ul,
.contact-column p {
	list-style: none;
	padding: 0;
	margin: 0;
}

.links-column li {
	margin-bottom: 0.75rem;
}

.links-column a,
.contact-column a {
	color: #999;
	text-decoration: none;
	transition: color 0.3s ease, padding-left 0.3s ease;
}

.links-column a:hover,
.contact-column a:hover {
	color: var(--primary-color);
	padding-left: 5px;
}

.contact-column p {
	margin-bottom: 1rem;
	line-height: 1.7;
}

.footer-socials {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.footer-socials a {
	color: #999;
	text-decoration: none;
	font-weight: 500;
	padding: 6px 0;
	transition: color 0.3s ease;
}

.footer-socials a:nth-child(1):hover {
	color: #0077b5;
}
.footer-socials a:nth-child(2):hover {
	color: #1877f2;
}
.footer-socials a:nth-child(3):hover {
	color: #25d366;
}

.footer-bottom {
	border-top: 1px solid var(--border-dark);
	padding: 2rem 0;
	text-align: center;
	color: #666;
	font-size: 0.9rem;
}

/* === FOOTER RESPONSIVE STYLES === */
@media (max-width: 1024px) {
	.footer-main {
		grid-template-columns: repeat(2, 1fr);
		gap: 4rem;
	}
	.footer-about-text {
		padding-right: 0;
	}
}

@media (max-width: 768px) {
	.footer-main {
		grid-template-columns: 1fr;
		gap: 3rem;
		text-align: center;
	}
	.about-column {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.links-column ul,
	.contact-column p,
	.social-column .footer-socials {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
}
