/**
 * Front Page Styles
 *
 * Dark mode, modern rounded design for Polaris IT homepage.
 * Speed optimized with minimal animations.
 *
 * @package PLS_HTML
 * @since 0.1.0
 */

/* Dark Mode Base */
.front-page {
	background: #0a0a0a;
	color: #e0e0e0;
	min-height: 100vh;
}

/* Dark Mode Header & Footer */
body.front-page .site-header,
body.home.front-page .site-header {
	background: #0a0a0a;
	border-bottom: 1px solid #2a2a2a;
}

body.front-page .site-title a,
body.home.front-page .site-title a {
	color: #ffffff;
}

body.front-page .site-title a:hover,
body.home.front-page .site-title a:hover {
	color: #3b82f6;
}

body.front-page .main-navigation a,
body.home.front-page .main-navigation a {
	color: #c0c0c0;
}

body.front-page .main-navigation a:hover,
body.home.front-page .main-navigation a:hover {
	color: #3b82f6;
}

body.front-page .site-footer,
body.home.front-page .site-footer {
	background: #0a0a0a;
	border-top: 1px solid #2a2a2a;
	color: #a0a0a0;
}

body.front-page .site-main,
body.home.front-page .site-main {
	padding: 0;
}

.front-page .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Hero Section */
.hero-section {
	padding: 6rem 2rem;
	text-align: center;
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto;
}

.hero-title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 700;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1.2;
}

.hero-subtitle {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	color: #a0a0a0;
	margin-bottom: 1.5rem;
	font-weight: 500;
}

.hero-description {
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	color: #c0c0c0;
	margin-bottom: 2.5rem;
	line-height: 1.6;
}

.hero-cta {
	margin-top: 2rem;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.875rem 2rem;
	border-radius: 0.75rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.btn-primary {
	background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
	color: #ffffff;
	box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
	text-decoration: none;
}

.btn-primary:active {
	transform: translateY(0);
}

/* Section Styles */
.about-section,
.services-section,
.technologies-section,
.contact-section {
	padding: 5rem 2rem;
}

.section-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	margin-bottom: 3rem;
	text-align: center;
	color: #ffffff;
}

/* About Section */
.about-content {
	max-width: 800px;
	margin: 0 auto;
}

.about-text {
	font-size: 1.125rem;
	line-height: 1.8;
	color: #c0c0c0;
	text-align: center;
}

.about-text strong {
	color: #ffffff;
	font-weight: 600;
}

/* Services Accordion */
.services-accordion {
	max-width: 900px;
	margin: 0 auto;
}

.accordion-item {
	background: #1a1a1a;
	border-radius: 1rem;
	margin-bottom: 1rem;
	border: 1px solid #2a2a2a;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.accordion-item:hover {
	border-color: #3a3a3a;
}

.accordion-header {
	width: 100%;
	padding: 1.5rem 2rem;
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 600;
	transition: background-color 0.2s ease;
}

.accordion-header:hover {
	background: #222222;
}

.accordion-header[aria-expanded="true"] {
	background: #222222;
}

.accordion-title {
	flex: 1;
}

.accordion-icon {
	font-size: 1.5rem;
	font-weight: 300;
	transition: transform 0.3s ease;
	color: #3b82f6;
	line-height: 1;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
	transform: rotate(45deg);
}

.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	background: #151515;
}

.accordion-content[aria-hidden="false"] {
	max-height: 1000px;
}

.accordion-content-inner {
	padding: 2rem;
}

.service-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.service-list li {
	padding: 1rem 2rem;
	border-bottom: 1px solid #2a2a2a;
	color: #c0c0c0;
	line-height: 1.7;
}

.service-list li:last-child {
	border-bottom: none;
}

.service-list li strong {
	color: #3b82f6;
	font-weight: 600;
}

/* Technologies Section */
.tech-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	max-width: 1000px;
	margin: 0 auto;
}

.tech-category {
	background: #1a1a1a;
	border-radius: 1rem;
	padding: 2rem;
	border: 1px solid #2a2a2a;
}

.tech-category-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: #ffffff;
}

.tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tech-tag {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #2a2a2a;
	border-radius: 0.5rem;
	color: #e0e0e0;
	font-size: 0.9rem;
	font-weight: 500;
	border: 1px solid #3a3a3a;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tech-tag:hover {
	background: #333333;
	border-color: #3b82f6;
}

/* Contact Section */
.contact-content {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.contact-text {
	font-size: 1.125rem;
	color: #c0c0c0;
	margin-bottom: 2rem;
	line-height: 1.7;
}

.contact-info {
	margin-bottom: 2.5rem;
}

.contact-email {
	font-size: 1.125rem;
	color: #e0e0e0;
}

.contact-email strong {
	color: #ffffff;
	font-weight: 600;
}

.contact-email a {
	color: #3b82f6;
	text-decoration: none;
	transition: color 0.2s ease;
}

.contact-email a:hover {
	color: #60a5fa;
	text-decoration: underline;
}

.contact-cta {
	margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	.hero-section {
		padding: 4rem 1.5rem;
	}

	.about-section,
	.services-section,
	.technologies-section,
	.contact-section {
		padding: 3rem 1.5rem;
	}

	.front-page .container {
		padding: 0 1.5rem;
	}

	.accordion-header {
		padding: 1.25rem 1.5rem;
		font-size: 1.125rem;
	}

	.service-list li {
		padding: 0.875rem 1.5rem;
		font-size: 0.95rem;
	}

	.tech-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.tech-category {
		padding: 1.5rem;
	}
}

/* Performance Optimizations */
.hero-section,
.about-section,
.services-section,
.technologies-section,
.contact-section {
	content-visibility: auto;
	contain-intrinsic-size: 500px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

