/* ============================================================
   Prom Digital — Main Styles
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
	--color-primary: #ff5e14;
	--color-primary-hover: #e04e00;
	--color-primary-light: #fff0e8;
	--color-white: #ffffff;
	--color-bg-light: #f5f5f5;
	--color-bg-dark: #1a1a2e;
	--color-text: #222222;
	--color-text-light: #666666;
	--color-text-muted: #999999;
	--color-border: #e0e0e0;
	--color-success: #28a745;
	--color-gradient-start: #1a1a2e;
	--color-gradient-end: #16213e;

	--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	--font-heading: 'Space Grotesk', sans-serif;

	--container-max: 1400px;
	--container-padding: 20px;

	--transition-speed: 0.3s;
	--transition-ease: cubic-bezier(0.4, 0, 0.2, 1);

	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
	--shadow-primary: 0 4px 15px rgba(255, 94, 20, 0.3);

	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--radius-xl: 20px;

	--header-height: 60px;

}

/* ---------- Reset ---------- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

html, body {
	height: 100%;
}

body {
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background-color: #0d0d20;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow: hidden;
}


img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition-speed) var(--transition-ease);
}

a:hover {
	color: var(--color-primary-hover);
}

ul, ol {
	list-style: none;
}

/* ---------- Container ---------- */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

/* ---------- Page Main (Scroll Snap) ---------- */
.page-main {
	position: relative;
	height: 100vh;
	overflow-y: auto;
	overflow-x: hidden;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	/* scroll-snap-type removed — managed by section-scroll.js */
	scrollbar-gutter: stable;
}


.scroll-section {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	scroll-snap-align: start;
	overflow-y: auto;
	position: relative;
}

/* ---------- Sections ---------- */
.section {
	padding: 80px 0;
	min-height: 100vh;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow-y: auto;
}

.section-title {
	font-family: var(--font-heading);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	margin-bottom: 50px;
	color: var(--color-text);
}

.section-subtitle {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 600;
	text-align: center;
	margin-bottom: 40px;
	color: var(--color-text);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all var(--transition-speed) var(--transition-ease);
	text-decoration: none;
	white-space: nowrap;
}

.btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.btn-primary {
	background-color: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
}

.btn-primary:hover {
	background-color: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
	color: var(--color-white);
	box-shadow: var(--shadow-primary);
	transform: translateY(-1px);
}

.btn-outline {
	background-color: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn-outline:hover {
	background-color: var(--color-primary);
	color: var(--color-white);
	transform: translateY(-1px);
}

.btn-lg {
	padding: 16px 36px;
	font-size: 18px;
}

.btn-sm {
	padding: 8px 20px;
	font-size: 14px;
}

.btn-full {
	width: 100%;
}

/* ---------- Forms ---------- */
.form-group {
	margin-bottom: 20px;
}

.form-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
}

.required {
	color: var(--color-primary);
}

.form-input {
	width: 100%;
	padding: 14px 16px;
	font-family: var(--font-primary);
	font-size: 16px;
	color: var(--color-text);
	background-color: var(--color-white);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	transition: border-color var(--transition-speed) var(--transition-ease);
	appearance: none;
}

.form-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(255, 94, 20, 0.1);
}

.form-input::placeholder {
	color: var(--color-text-muted);
}

.form-error {
	border-color: #dc3545;
}

.form-success {
	text-align: center;
	padding: 20px;
	font-size: 18px;
	color: var(--color-success);
}

.form-disclaimer {
	margin-top: 12px;
	font-size: 12px;
	color: var(--color-text-muted);
	text-align: center;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes countUp {
	from { opacity: 0; }
	to { opacity: 1; }
}

.animate-on-scroll {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s var(--transition-ease), transform 0.6s var(--transition-ease);
}

.animate-on-scroll.animated {
	opacity: 1;
	transform: translateY(0);
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

/* ---------- Active nav link ---------- */
.header-menu .current-menu-item a,
.header-menu .current-menu-item a::after {
	color: var(--color-primary);
	transform: scaleX(1);
}

/* ---------- Body menu open ---------- */
body.menu-open {

	overflow: hidden;
}

/* ---------- Placeholder helpers ---------- */
.case-image-placeholder,
.client-logo-placeholder,
.team-photo-placeholder,
.review-avatar-placeholder,
.certificate-placeholder {
	background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-muted);
	font-size: 14px;
	font-weight: 500;
}

.case-image-placeholder {
	height: 200px;
	width: 100%;
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.client-logo-placeholder {
	height: 60px;
	min-width: 120px;
	padding: 0 20px;
	border-radius: var(--radius-sm);
}

.team-photo-placeholder {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	margin: 0 auto 12px;
}

.review-avatar-placeholder {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	flex-shrink: 0;
}

.certificate-placeholder {
	height: 140px;
	padding: 10px;
	text-align: center;
	border: 2px dashed var(--color-border);
	border-radius: var(--radius-md);
}

/* ============================================================
   Scroll-Reveal Animations (Intersection Observer)
   ============================================================ */

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--transition-ease), transform 0.7s var(--transition-ease);
}

.reveal.revealed {
	opacity: 1;
	transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }
.reveal-delay-5 { transition-delay: 0.25s; }
.reveal-delay-6 { transition-delay: 0.3s; }

/* ============================================================
   Decorative Tech Cluster (shared component)
   ============================================================ */

.section-tech-cluster {
	position: absolute;
	bottom: 24px;
	right: 24px;
	width: 100px;
	height: 110px;
	z-index: 0;
	pointer-events: none;
	opacity: 0.45;
	/* default light variant — overridden per section */
}

/* Shared cluster content via pseudo-elements */
.section-tech-cluster::before,
.section-tech-cluster::after {
	content: '';
	position: absolute;
	border-radius: 50%;
}

/* Central node */
.section-tech-cluster::before {
	width: 6px;
	height: 6px;
	background: var(--color-primary);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	box-shadow:
		0 0 6px rgba(255, 94, 20, 0.4),
		0 0 20px rgba(255, 94, 20, 0.08);
	animation: tech-cluster-pulse 3s ease-in-out infinite;
}

/* Outer ring (connection orbit) */
.section-tech-cluster::after {
	width: 50px;
	height: 50px;
	border: 1px solid rgba(255, 94, 20, 0.15);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	animation: tech-cluster-orbit 8s linear infinite;
}

/* Satellite nodes via background */
.section-tech-cluster {
	background:
		radial-gradient(circle at 14px 85px, rgba(255, 94, 20, 0.12) 0%, transparent 2px),
		radial-gradient(circle at 80px 20px, rgba(100, 140, 255, 0.10) 0%, transparent 2px),
		radial-gradient(circle at 85px 85px, rgba(255, 94, 20, 0.08) 0%, transparent 2px),
		radial-gradient(circle at 10px 20px, rgba(100, 140, 255, 0.10) 0%, transparent 2px);
	/* connection lines */
	background-repeat: no-repeat;
}

/* Connection lines (angled lines connecting nodes) */
.section-tech-cluster {
	background-image:
		linear-gradient(45deg, transparent calc(50% - 0.5px), rgba(255, 94, 20, 0.06) calc(50% - 0.5px), rgba(255, 94, 20, 0.06) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
		linear-gradient(-30deg, transparent calc(50% - 0.5px), rgba(100, 140, 255, 0.05) calc(50% - 0.5px), rgba(100, 140, 255, 0.05) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
		radial-gradient(circle at 14px 85px, rgba(255, 94, 20, 0.12) 0%, transparent 2px),
		radial-gradient(circle at 80px 20px, rgba(100, 140, 255, 0.10) 0%, transparent 2px),
		radial-gradient(circle at 85px 85px, rgba(255, 94, 20, 0.08) 0%, transparent 2px),
		radial-gradient(circle at 10px 20px, rgba(100, 140, 255, 0.10) 0%, transparent 2px);
	background-size:
		80px 80px, 70px 60px,
		0 0, 0 0, 0 0, 0 0;
	background-position:
		10px 22px, 5px 28px,
		0 0, 0 0, 0 0, 0 0;
	background-repeat: no-repeat;
}

/* Light variants for bright sections */
.light-section .section-tech-cluster {
	opacity: 0.25;
}

.light-section .section-tech-cluster::before {
	box-shadow:
		0 0 6px rgba(255, 94, 20, 0.25),
		0 0 20px rgba(255, 94, 20, 0.04);
}

.light-section .section-tech-cluster::after {
	border-color: rgba(255, 94, 20, 0.10);
}

/* Animations */
@keyframes tech-cluster-pulse {
	0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
	50% { transform: translate(-50%, -50%) scale(1.6); opacity: 1; }
}

@keyframes tech-cluster-orbit {
	0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 0.5; }
	50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.15); opacity: 0.7; }
	100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); opacity: 0.5; }
}
