/* ========================================
   ELEKTRO-REM Custom Styles
   Modern One-Page Landing
   ======================================== */

/* ====================
   Variables & Reset
   ==================== */
:root {
	--primary-color: #ffa500;
	--secondary-color: #ffcc00;
	--accent-color: #ff8c00;
	--dark-bg: #0a0a0a;
	--light-bg: #1a1a1a;
	--text-primary: #ffffff;
	--text-secondary: #b0b0b0;
	--spacing-unit: 1rem;
	--transition-speed: 0.3s;
	--border-radius: 10px;
}

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 2rem;
}

body {
	overflow-y: auto !important;
	overflow-x: hidden;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background: var(--dark-bg) !important;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#hero,
.section {
	flex-shrink: 0;
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

@media (max-width: 768px) {
	.container {
		padding: 0 1rem;
	}
}

/* Section spacing */
.section {
	padding: 6rem 0;
	position: relative;
	background: var(--dark-bg);
}

.section-dark {
	background: var(--light-bg);
}

@media (max-width: 768px) {
	.section {
		padding: 3rem 0;
	}
}

/* ====================
   Hero Section
   ==================== */
#hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	background: #090606;
}

#hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('../css/images/bg.jpg') bottom left;
	background-repeat: repeat-x;
	background-size: 2250px auto;
	width: 6750px;
	height: 100%;
	animation: bgSlide 60s linear infinite;
	z-index: 0;
}

@keyframes bgSlide {
	0% {
		transform: translate3d(0,0,0);
	}
	100% {
		transform: translate3d(-2250px,0,0);
	}
}

@media screen and (max-width: 1680px) {
	#hero::before {
		background-size: 1500px auto;
		width: 4500px;
	}

	@keyframes bgSlide {
		0% { transform: translate3d(0,0,0); }
		100% { transform: translate3d(-1500px,0,0); }
	}
}

@media screen and (max-width: 1280px) {
	#hero::before {
		background-size: 750px auto;
		width: 2250px;
	}

	@keyframes bgSlide {
		0% { transform: translate3d(0,0,0); }
		100% { transform: translate3d(-750px,0,0); }
	}
}

@media screen and (max-width: 736px) {
	#hero::before {
		background-size: 300px auto;
		width: 900px;
	}

	@keyframes bgSlide {
		0% { transform: translate3d(0,0,0); }
		100% { transform: translate3d(-300px,0,0); }
	}
}

@media screen and (max-width: 480px) {
	#hero::before {
		background-size: 412.5px auto;
		width: 1237.5px;
	}

	@keyframes bgSlide {
		0% { transform: translate3d(0,0,0); }
		100% { transform: translate3d(-412.5px,0,0); }
	}
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 75%),
		radial-gradient(ellipse at center, rgba(255,165,0,0.1) 0%, rgba(10,10,10,0.8) 100%);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 2rem;
	max-width: 900px;
	margin: 0 auto;
}

.hero-title {
	font-size: clamp(2.5rem, 8vw, 5rem);
	font-weight: 900;
	letter-spacing: 0.1em;
	margin-bottom: 1rem;
	text-shadow: 0 4px 20px rgba(0,0,0,0.5);
	animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
	font-size: clamp(1rem, 3vw, 1.5rem);
	opacity: 0.95;
	margin-bottom: 0.5rem;
	animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-tagline {
	font-size: clamp(0.9rem, 2.5vw, 1.2rem);
	opacity: 0.85;
	font-style: italic;
	margin-bottom: 2.5rem;
	animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-cta {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 1rem 2.5rem;
	border-radius: var(--border-radius);
	text-decoration: none;
	font-weight: 700;
	font-size: 1rem;
	transition: all var(--transition-speed) ease;
	border: 2px solid transparent;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.btn-primary {
	background: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

.btn-primary:hover {
	background: transparent;
	color: var(--primary-color);
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(255,165,0,0.4);
}

.btn-secondary {
	background: transparent;
	color: white;
	border-color: white;
}

.btn-secondary:hover {
	background: white;
	color: var(--dark-bg);
	transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	text-align: center;
	color: rgba(255,255,255,0.7);
	animation: bounce 2s infinite;
	cursor: pointer;
}

.scroll-indicator span {
	display: block;
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
	40% { transform: translateX(-50%) translateY(-10px); }
	60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ====================
   Section Titles
   ==================== */
.section-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 900;
	text-align: center;
	margin-bottom: 1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	position: relative;
	display: inline-block;
	width: 100%;
}

.section-title::after {
	content: '';
	display: block;
	width: 80px;
	height: 4px;
	background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--secondary-color));
	margin: 1rem auto 0;
	border-radius: 2px;
	box-shadow: 0 2px 10px rgba(255,165,0,0.4);
}

.section-subtitle {
	text-align: center;
	font-size: 1.1rem;
	opacity: 0.8;
	margin-bottom: 3rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* ====================
   About Section
   ==================== */
.about-content {
	max-width: 900px;
	margin: 0 auto;
}

.about-text {
	text-align: center;
}

.lead {
	font-size: clamp(1.1rem, 2.5vw, 1.3rem);
	line-height: 1.8;
	margin-bottom: 1.5rem;
	color: var(--text-primary);
}

.about-text p {
	font-size: 1.05rem;
	line-height: 1.8;
	margin-bottom: 2rem;
	color: var(--text-secondary);
}

/* Stats */
.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-top: 3rem;
}

.stat-item {
	text-align: center;
	padding: 2rem;
	background: rgba(255,255,255,0.05);
	border-radius: var(--border-radius);
	border: 1px solid rgba(255,255,255,0.1);
	transition: all var(--transition-speed);
	opacity: 0;
	transform: translateY(20px);
}

.stat-item.fade-in {
	opacity: 1;
	transform: translateY(0);
}

.stat-item:hover {
	background: rgba(255,255,255,0.08);
	transform: translateY(-5px);
	border-color: var(--primary-color);
}

.stat-number {
	display: block;
	font-size: 3rem;
	font-weight: 900;
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

.stat-label {
	display: block;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.8;
}

/* ====================
   Gallery Section
   ==================== */
#gallery {
	padding: 4rem 0;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2rem;
}

@media (max-width: 768px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
	transition: all var(--transition-speed);
	opacity: 0;
	transform: scale(0.95);
}

.gallery-item.fade-in {
	opacity: 1;
	transform: scale(1);
}

.gallery-item:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.gallery-item img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.gallery-item:hover img {
	transform: scale(1.1);
}

.gallery-caption {
	display: none;
}

/* ====================
   Services Section
   ==================== */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 3rem;
}

@media (max-width: 768px) {
	.services-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

.service-card {
	padding: 2.5rem 2rem;
	background: rgba(255,255,255,0.03);
	border-radius: var(--border-radius);
	border: 1px solid rgba(255,255,255,0.1);
	transition: all var(--transition-speed);
	opacity: 0;
	transform: translateY(30px);
}

.service-card.fade-in {
	opacity: 1;
	transform: translateY(0);
}

.service-card:hover {
	background: rgba(255,255,255,0.06);
	border-color: var(--primary-color);
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(255,165,0,0.3);
}

.service-icon {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
	display: block;
	filter: drop-shadow(0 0 15px rgba(255,165,0,0.4));
}

.service-card h3 {
	font-size: 1.4rem;
	font-weight: 900;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.service-card p {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
}

.service-features {
	list-style: none;
	padding: 0;
}

.service-features li {
	padding: 0.5rem 0;
	padding-left: 1.5rem;
	position: relative;
	font-size: 0.9rem;
	opacity: 0.85;
}

.service-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--primary-color);
	font-weight: bold;
}

/* ====================
   Contact Section
   ==================== */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	margin-top: 3rem;
}

@media (max-width: 968px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

.contact-info-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact-card {
	display: flex;
	gap: 1.5rem;
	padding: 2rem;
	background: rgba(255,255,255,0.05);
	border-radius: var(--border-radius);
	border: 1px solid rgba(255,255,255,0.1);
	transition: all var(--transition-speed);
	opacity: 0;
	transform: translateX(-30px);
}

.contact-card.fade-in {
	opacity: 1;
	transform: translateX(0);
}

.contact-card:hover {
	background: rgba(255,255,255,0.08);
	border-color: var(--primary-color);
	transform: translateX(5px);
}

.contact-icon {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
	border-radius: 50%;
	color: white;
	box-shadow: 0 4px 15px rgba(255,140,0,0.3);
}

.contact-icon svg {
	stroke: currentColor;
}

.contact-details {
	flex: 1;
}

.contact-details h3 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.7;
	margin-bottom: 0.5rem;
	font-weight: 700;
}

.contact-value {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.contact-value a {
	color: var(--text-primary);
	text-decoration: none;
	font-size: 1.1rem;
	font-weight: 500;
	transition: color var(--transition-speed);
}

.contact-value a:hover {
	color: var(--primary-color);
}

.contact-value p {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
}

/* Copy button */
.copy-btn {
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	color: white;
	padding: 0.5rem;
	border-radius: 6px;
	cursor: pointer;
	transition: all var(--transition-speed);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
}

.copy-btn:hover {
	background: var(--primary-color);
	border-color: var(--primary-color);
	transform: scale(1.1);
}

.copy-btn:active {
	transform: scale(0.95);
}

.copy-btn svg {
	stroke: currentColor;
}

/* ====================
   Footer
   ==================== */
#footer {
	background: var(--dark-bg);
	padding: 4rem 0 2rem;
	border-top: 1px solid rgba(255,255,255,0.1);
	width: 100%;
	margin-top: auto;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
	margin-bottom: 3rem;
}

.footer-info h3,
.footer-links h4,
.footer-contact h4 {
	font-size: 1.2rem;
	font-weight: 900;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.footer-info p,
.footer-contact p {
	color: var(--text-secondary);
	line-height: 1.8;
	margin-bottom: 0.5rem;
}

.footer-year {
	color: var(--primary-color) !important;
	font-weight: 600;
}

.footer-links ul {
	list-style: none;
	padding: 0;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-links a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color var(--transition-speed);
}

.footer-links a:hover {
	color: var(--primary-color);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255,255,255,0.1);
	color: var(--text-secondary);
	font-size: 0.9rem;
}

/* ====================
   Toast Notification
   ==================== */
.toast {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
	color: white;
	padding: 1rem 2rem;
	border-radius: var(--border-radius);
	font-size: 0.95rem;
	font-weight: 600;
	opacity: 0;
	transform: translateY(100px);
	transition: all var(--transition-speed);
	pointer-events: none;
	z-index: 10000;
	box-shadow: 0 10px 40px rgba(255,140,0,0.5);
}

.toast.show {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 768px) {
	.toast {
		bottom: 20px;
		right: 20px;
		left: 20px;
		text-align: center;
	}
}

/* ====================
   Back to Top Button
   ==================== */
.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: var(--primary-color);
	border: none;
	border-radius: 50%;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(0);
	transition: all var(--transition-speed);
	z-index: 999;
	box-shadow: 0 5px 20px rgba(255,165,0,0.5);
}

.back-to-top.visible {
	opacity: 1;
	transform: scale(1);
}

.back-to-top:hover {
	background: var(--accent-color);
	transform: scale(1.1);
	box-shadow: 0 8px 30px rgba(255,140,0,0.6);
}

@media (max-width: 768px) {
	.back-to-top {
		bottom: 80px;
	}
}

/* ====================
   Animations
   ==================== */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.fade-in {
	animation: fadeIn 0.6s ease-out forwards;
}

/* ====================
   Accessibility
   ==================== */
.copy-btn:focus,
.btn:focus,
.back-to-top:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ====================
   Print Styles
   ==================== */
@media print {
	.hero-cta,
	.scroll-indicator,
	.copy-btn,
	.toast,
	.back-to-top {
		display: none;
	}

	.section {
		page-break-inside: avoid;
	}
}
