/* --- Global Styles --- */
:root {
	/* Original Accent - We'll keep this and ensure it harmonizes */
	--primary-color: #3498db;
	--primary-color-hover: #2980b9;

	/* NEW Dark Theme Palette - Softer & More Harmonious */
	--dark-bg-deep: #191920;
	--dark-bg-surface: #23232e;
	--dark-bg-elevated: #2d2d3a;
	--dark-text-primary: #e4e6eb;
	--dark-text-secondary: #b0b3b8;
	--dark-border-soft: #3a3b44;
	--dark-border-medium: #4a4b55;
	--dark-shadow-color: rgba(0, 0, 0, 0.5);
	--dark-highlight-text: var(--primary-color);
	--dark-lightbox-overlay: rgba(15, 15, 25, 0.94);
}

body {
	font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.7;
	margin: 0;
	padding: 0;
	background-color: var(--dark-bg-deep);
	color: var(--dark-text-primary);
	scroll-behavior: smooth;
}

.container {
	width: 88%;
	max-width: 1200px;
	margin: auto;
	overflow: hidden;
	padding: 0 25px;
}

/* --- Header & Navigation --- */
header {
	background: var(--dark-bg-surface);
	color: var(--dark-text-primary);
	padding-top: 8px;
	padding-bottom: 8px;
	min-height: 45px;
	border-bottom: var(--primary-color) 4px solid;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 8px var(--dark-shadow-color);
}

header #branding img.logo {
	height: 25px;
	margin-right: 8px;
	vertical-align: middle;
}
header #branding h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }
header #branding h1 .highlight { color: var(--dark-highlight-text); }
header nav { margin-top: 5px; float: right; }
header nav ul { padding: 0; margin: 0; list-style: none; }
header nav li { float: left; display: inline; padding: 0 15px; }
header nav li a { color: var(--dark-text-primary); text-decoration: none; text-transform: uppercase; font-size: 18px; transition: color 0.3s ease; display: block; padding: 5px 0; }
header .current a, header nav li a:hover { color: var(--dark-highlight-text); font-weight: bold; }

.menu-toggle-checkbox { display: none; }
.menu-icon { display: none; cursor: pointer; float: right; padding: 10px; position: relative; z-index: 1001; user-select: none; }
.menu-icon span { background: var(--dark-text-primary); display: block; height: 3px; margin-bottom: 5px; position: relative; width: 25px; transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease; }
.menu-icon span:last-child { margin-bottom: 0; }

/* --- Minimal Hero Section --- */
#minimal-hero { padding-top: 30px; padding-bottom: 30px; text-align: center; background-color: var(--dark-bg-surface); border-bottom: 1px solid var(--dark-border-soft); }
#minimal-hero h2 { font-size: 2.5em; color: var(--dark-text-primary); margin-top: 0; margin-bottom: 5px; font-weight: 600; }
#minimal-hero p { font-size: 1.2em; color: var(--dark-text-secondary); max-width: 800px; margin: auto auto 0 auto; }

/* --- Hero Section (Old Showcase) --- */
#showcase { min-height: 450px; background: linear-gradient(45deg, var(--dark-bg-deep), var(--primary-color), var(--primary-color-hover)); background-size: 400% 400%; animation: gradientBG 15s ease infinite; text-align: center; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; }
@keyframes gradientBG { 0% {background-position: 0% 50%;} 50% {background-position: 100% 50%;} 100% {background-position: 0% 50%;} }
#showcase h1 { font-size: 50px; margin-bottom: 15px; text-shadow: 2px 2px 8px var(--dark-shadow-color); font-weight: 700; }
#showcase p { font-size: 22px; text-shadow: 1px 1px 5px var(--dark-shadow-color); max-width: 700px; margin: auto; }

/* --- Buttons --- */
.button { display: inline-flex; padding: 12px 35px; color: #fff; text-align: center; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: .1rem; text-transform: uppercase; text-decoration: none; white-space: nowrap; background-color: var(--primary-color); border-radius: 5px; border: none; cursor: pointer; box-sizing: border-box; margin-top: 25px; transition: background-color 0.3s ease, transform 0.2s ease; min-height: 48px; align-items: center; justify-content: center; }
.button:hover { background-color: var(--primary-color-hover); transform: translateY(-2px); }
.button-secondary { background-color: transparent; border: 2px solid var(--dark-border-medium); color: var(--dark-text-secondary); }
.button-secondary:hover { background-color: rgba(255,255,255,0.08); border-color: var(--dark-text-primary); transform: translateY(-2px); color: var(--dark-text-primary); }

/* --- Section Styling --- */
.section { padding: 60px 0; border-bottom: 1px solid var(--dark-border-soft); }
.section:last-child { border-bottom: none; }
.section.alternate-bg { background-color: var(--dark-bg-surface); }

.section-title { text-align: center; font-size: 36px; margin-bottom: 40px; color: var(--dark-text-primary); font-weight: 600; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; display: block; width: 70px; height: 3px; background: var(--primary-color); bottom: 0; left: 50%; transform: translateX(-50%); }

/* --- Gallery Styling --- */
.gallery-nav-bar { text-align: center; margin-bottom: 40px; padding: 10px 0; background-color: var(--dark-bg-elevated); border-radius: 5px; }
.gallery-nav-bar a { display: inline-flex; padding: 10px 15px; margin: 0 10px; text-decoration: none; color: var(--dark-text-secondary); font-weight: 600; border-radius: 4px; transition: background-color 0.3s ease, color 0.3s ease; min-height: 44px; align-items: center; }
.gallery-nav-bar a:hover, .gallery-nav-bar a.active-filter { background-color: var(--primary-color); color: #fff; }

.gallery-section { margin-bottom: 50px; }
.gallery-section-title { font-size: 2em; color: var(--dark-text-primary); margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid var(--dark-border-soft); text-align: left; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.gallery-item { background: var(--dark-bg-surface); border: 1px solid var(--dark-border-soft); border-radius: 8px; text-align: center; box-shadow: 0 4px 10px var(--dark-shadow-color); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 6px 15px var(--dark-shadow-color); }
.gallery-item a { display: block; text-decoration: none; color: inherit; }
.gallery-item img.thumbnail { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.3s ease; background-color: var(--dark-bg-elevated); }
.gallery-item:hover img.thumbnail { transform: scale(1.05); }
.gallery-item .caption { padding: 15px; }
.gallery-item h3 { font-size: 1.1em; margin-top: 0; margin-bottom: 8px; color: var(--dark-text-primary); }
.gallery-item p { font-size: 0.9em; color: var(--dark-text-secondary); line-height: 1.5; margin-bottom: 0; }
.gallery-item .caption p.mobile-truncate { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; max-height: 2.8em; }

/* --- Lightbox Gallery Styling --- */
.lightbox-target { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--dark-lightbox-overlay); z-index: 9999; display: none; opacity: 0; transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s; visibility: hidden; overflow: hidden; }
.lightbox-target:target { display: flex; align-items: center; justify-content: center; opacity: 1; visibility: visible; transition: opacity 0.3s ease-in-out; }

.lightbox-content {
	position: relative; background: var(--dark-bg-surface); color: var(--dark-text-primary);
	border-radius: 8px; box-shadow: 0 8px 30px var(--dark-shadow-color);
	width: 95vw; height: 95vh;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 10px; overflow: hidden;
}
.lightbox-content img, .lightbox-content iframe {
	display: block; max-width: 100%; max-height: 90%; /* Image/video area definition */
	object-fit: contain; margin-bottom: 15px; border-radius: 3px;
	flex-shrink: 1; flex-grow: 1;
	border: 1px solid var(--dark-border-soft);
}
.lightbox-content iframe { width: 100%; }

.lightbox-close {
	text-decoration: none;
	position: absolute;
	background: rgba(200, 60, 60, 0.75);
	color: #fff;
	padding: 5px 20px;
	border-radius: 3px;
	user-select: none;
	transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
	min-width: 30px;
	min-height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 10px;
	right: 10px;
	font-size: 20px;
	line-height: 1;
}

.lightbox-nav {
	text-decoration: none;
	position: absolute;
	background: rgba(90, 90, 90, 0.7);
	color: #fff;
	padding: 5px 5px;
	font-size: 24px;
	min-width: 30px;
	min-height: 40px;
	border-radius: 3px;
	user-select: none;
	transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	/* Position arrows relative to bottom of .lightbox-content, aiming for near image bottom */
	bottom: 12%; /* EXPERIMENT with this value (e.g., 10% to 18%) */
}

.lightbox-close:hover, .lightbox-nav:hover {
	background: var(--primary-color);
	transform: scale(1.1);
	opacity: 1;
}

.lightbox-prev {
	left: 15px;
}
.lightbox-next {
	right: 15px;
}

.lightbox-caption {
	text-align: center; color: var(--dark-text-primary); width: 100%;
	padding: 10px 0 0 0;
	flex-shrink: 0; overflow-y: auto;
	/* Reduced padding-bottom as arrows are no longer at absolute bottom of modal */
	padding-bottom: 10px; /* Small padding for caption text */
}

a.lightbox-nav[href="#"] { display: none !important; }


/* --- Services Page Styling --- */
.service-box {
	background: var(--dark-bg-surface); color: var(--dark-text-primary);
	padding: 25px; margin-bottom: 25px; border: 1px solid var(--dark-border-soft);
	border-radius: 8px; box-shadow: 0 2px 8px var(--dark-shadow-color);
}
.service-box h3 { color: var(--dark-highlight-text); margin-top: 0; font-size: 1.8em; border-bottom: 1px solid var(--dark-border-soft); padding-bottom: 10px; margin-bottom: 20px; }
.service-box h4 { font-size: 1.3em; color: var(--dark-text-primary); margin-top: 15px; margin-bottom: 10px; }
.service-box ul, .service-box ol { list-style: none; padding-left: 0; }
.service-box li { padding-left: 25px; position: relative; margin-bottom: 10px; line-height: 1.6; color: var(--dark-text-secondary); }
.service-box ul li::before { content: '✓'; color: var(--dark-highlight-text); position: absolute; left: 0; font-weight: bold; }
.service-box ol { counter-reset: list-item; }
.service-box ol li::before { content: counter(list-item) ". "; counter-increment: list-item; color: var(--dark-highlight-text); position: absolute; left: 0; font-weight: bold; }

/* --- About Page Styling --- */
.about-content img.profile-pic { float: left; margin-right: 25px; margin-bottom: 15px; max-width: 280px; border-radius: 50%; border: 5px solid var(--primary-color); box-shadow: 0 4px 10px var(--dark-shadow-color); }
.about-content .text-content { overflow: hidden; }
.about-content p { margin-bottom: 18px; font-size: 1.05em; color: var(--dark-text-secondary); }
.about-content strong { color: var(--dark-text-primary); }
.clear { clear: both; }
.why-choose-me { margin-top: 40px; background-color: var(--dark-bg-surface); padding: 30px; border-radius: 8px; border: 1px solid var(--dark-border-soft); }
.why-choose-me h3 { text-align: center; color: var(--dark-text-primary); margin-top:0; margin-bottom: 20px; font-size: 1.5em; }
.why-choose-me ul { list-style: none; padding-left: 0; }
.why-choose-me li { padding-left: 25px; position: relative; margin-bottom: 10px; font-size: 1.05em; color: var(--dark-text-secondary); }
.why-choose-me li::before { content: '⭐'; position: absolute; left: 0; }

/* --- Contact Page Styling --- */
.contact-info { margin-bottom: 35px; text-align: center; }
.contact-info p { font-size: 1.1em; margin-bottom: 12px; color: var(--dark-text-secondary); }
.contact-info strong { color: var(--dark-text-primary); }
.contact-info a { color: var(--dark-highlight-text); text-decoration: none; font-weight: 600; }
.contact-info a:hover { text-decoration: underline; color: var(--primary-color-hover); }
.social-links { margin-top: 20px; text-align: center; }
.social-links a { margin: 0 10px; text-decoration: none; display: inline-block; transition: transform 0.2s ease; min-width: 44px; min-height: 44px; }
.social-links a:hover { transform: scale(1.1); }
.social-links img.social-icon { width: 40px; height: 40px; vertical-align: middle; }
#faq .service-box h4 { font-size: 1.2em; color: var(--dark-text-primary); margin-bottom: 8px; border-bottom: none; padding-bottom: 0; }
#faq .service-box p { margin-bottom: 0; color: var(--dark-text-secondary); }

/* --- Testimonials Section --- */
#testimonials, .dark-section-theme {
background-color: var(--dark-bg-surface);
color: var(--dark-text-primary);
}
#testimonials .section-title, .dark-section-theme .section-title {
color: var(--dark-text-primary);
}
#testimonials .section-title::after, .dark-section-theme .section-title::after {
background: var(--dark-text-primary);
}
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
	background: var(--dark-bg-elevated);
	padding: 25px; border-radius: 8px;
	box-shadow: 0 4px 10px var(--dark-shadow-color);
	color: var(--dark-text-secondary);
}
.testimonial-card blockquote {
	margin: 0 0 15px 0; font-style: italic; line-height: 1.6;
	border-left: 3px solid var(--primary-color);
	padding-left: 15px;
	color: var(--dark-text-primary);
}
.testimonial-card .author { font-weight: bold; text-align: right; color: var(--dark-highlight-text); }

/* --- Terms of Service (ToS) Page Styling --- */
#tos .service-box { background: var(--dark-bg-surface); border-color: var(--dark-border-soft); }
#tos .service-box h3, #tos .service-box h4 { color: var(--dark-highlight-text); }
#tos .service-box p, #tos .service-box li { font-size: 1em; color: var(--dark-text-secondary); }

/* --- Footer --- */
footer {
	padding: 30px 20px; margin-top: 0;
	color: var(--dark-text-secondary);
	background-color: var(--dark-bg-surface);
	text-align: center; border-top: var(--primary-color) 4px solid;
}
footer p { margin: 0; }

/* --- Scroll to Top Button --- */
#toTopBtn {
position: fixed; bottom: 20px; right: 20px; z-index: 999;
background-color: var(--primary-color); color: white;
border: none; border-radius: 15%; padding: 15px 15px;
font-size: 18px; cursor: pointer; text-decoration: none;
box-shadow: 0 2px 5px var(--dark-shadow-color);
opacity: 0.8; transition: opacity 0.3s, background-color 0.3s;
}
#toTopBtn:hover { opacity: 1; background-color: var(--primary-color-hover); }

/* --- Focus States --- */
a:focus, button:focus, .gallery-nav-bar a:focus, .lightbox-close:focus, .lightbox-nav:focus, #toTopBtn:focus, header nav li a:focus, .menu-icon:focus {
	outline: 3px solid var(--primary-color);
	outline-offset: 3px;
}
.lightbox-nav:focus { background: var(--primary-color); transform: scale(1.1); opacity: 1; outline: none; }
.lightbox-close:focus { background: var(--primary-color); transform: scale(1.1); opacity: 1; outline: none; }


/* --- Responsive Design Adjustments --- */
@media(max-width: 768px){
	header { padding: 0; min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding-left: 15px; padding-right: 15px; background-color: var(--dark-bg-surface); }
	header #branding { margin-bottom: 0; }
	header #branding img.logo { height: 22px; margin-right: 5px; }
	header #branding h1 { font-size: 18px; }
	.menu-icon { display: block; order: 2; }
	.menu-icon span { background: var(--dark-text-primary); }
	header nav { position: absolute; top: 60px; left: 0; width: 100%; background-color: var(--dark-bg-surface); box-shadow: 0 2px 5px var(--dark-shadow-color); max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; z-index: 999; }
	header nav ul { text-align: left; width: 100%; }
	header nav li { float: none; display: block; width: 100%; border-bottom: 1px solid var(--dark-border-soft); }
	header nav li:last-child { border-bottom: none; }
	header nav ul li a { font-size: 14px; padding: 15px 20px; display: block; width: 100%; box-sizing: border-box; color: var(--dark-text-primary); }
	header nav ul li a:hover { color: var(--dark-highlight-text); }
	.menu-toggle-checkbox:checked ~ .menu-icon span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.menu-toggle-checkbox:checked ~ .menu-icon span:nth-child(2) { opacity: 0; }
	.menu-toggle-checkbox:checked ~ .menu-icon span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.menu-toggle-checkbox:checked ~ nav { max-height: 500px; }

	#minimal-hero { padding-top: 25px; padding-bottom: 25px; }
	#minimal-hero h2 { font-size: 1.6em; margin-bottom: 10px; line-height: 1.3; }
	#minimal-hero p { font-size: 0.95em; line-height: 1.6; }
	#showcase { padding: 15px; min-height: 250px; }
	#showcase h1 { font-size: 28px; line-height: 1.3; }
	#showcase p { font-size: 17px; line-height: 1.5; }
	.container { width: 90%; padding: 0 10px; }
	.gallery-grid { grid-template-columns: 1fr; gap: 20px; }
	.gallery-nav-bar a { margin: 5px; font-size: 0.9em; padding: 10px 12px; }
	.gallery-item .caption h3 { font-size: 1em; }
	.gallery-item .caption p { font-size: 0.85em; line-height: 1.4; }
	.about-content img.profile-pic { float: none; display: block; margin: 0 auto 20px auto; max-width: 160px; }
	.section-title { font-size: 24px; margin-bottom: 20px; line-height: 1.3; }
	.section { padding: 40px 0; }
	.lightbox-content { padding: 10px; }

	.lightbox-nav {
		padding: 8px 12px;
		font-size: 20px;
		min-height: 36px;
		bottom: 10%; /* EXPERIMENT with this value for mobile (e.g., 8% to 15%) */
	}
	.lightbox-prev {
		left: 10px;
	}
	.lightbox-next {
		right: 10px;
	}
	.lightbox-caption {
		padding-bottom: 5px; /* Small padding for mobile caption text */
		width: calc(100% - 10px);
		margin-left: auto;
		margin-right: auto;
	}
	.lightbox-close {
		padding: 4px 8px;
		font-size: 18px;
	}
	.testimonial-grid { grid-template-columns: 1fr; gap: 20px; }
	.testimonial-card blockquote { font-size: 0.95em; line-height: 1.5; }
	#toTopBtn { bottom: 15px; right: 15px; padding: 8px 11px; font-size: 16px; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
	body { font-size: 15px; line-height: 1.6; }
	p, li { font-size: 0.95em; line-height: 1.6; }
	h1, h2, h3, h4, h5, h6 { line-height: 1.3; }
}

/* Enhanced Service Box Layout (Dark Mode Adjustments) */
.service-box-enhanced {
	overflow: hidden; padding-bottom: 20px;
	background: var(--dark-bg-surface);
	border: 1px solid var(--dark-border-soft);
}
.service-visual { float: left; width: 30%; margin-right: 25px; position: relative; }
.service-visual a { display: block; position: relative; }
.service-thumb {
	width: 100%; height: auto; max-height: 250px; object-fit: cover;
	border-radius: 6px; border: 1px solid var(--dark-border-soft);
	box-shadow: 0 2px 4px var(--dark-shadow-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-visual a:hover .service-thumb { transform: scale(1.03); box-shadow: 0 4px 8px var(--dark-shadow-color); }
.view-icon {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	font-size: 2em; color: white; background-color: rgba(0,0,0,0.65);
	padding: 10px 15px; border-radius: 50%; opacity: 0;
	transition: opacity 0.3s ease; pointer-events: none;
}
.service-visual a:hover .view-icon { opacity: 1; }
.service-details { overflow: hidden; }
.service-details h3 { margin-top: 0; color: var(--dark-highlight-text); }
.button-small { padding: 8px 15px; font-size: 0.9em; margin-top: 15px; }

@media(max-width: 768px) { /* Responsive for service box - this was duplicated, ensure it's integrated or correct */
	.service-visual { float: none; width: 80%; margin: 0 auto 20px auto; }
	.service-thumb { max-height: 200px; }
}
