/* Modern Parallax Design for DBCA Global */

/* Import Inter font - Modern, professional, trustworthy */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.6;
	color: #333;
	overflow-x: hidden;
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.main-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	transition: all 0.3s ease;
}

.main-nav.scrolled {
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-logo-text {
	font-size: 1.25rem;
	font-weight: 700;
	color: #348cb2;
	text-decoration: none;
	letter-spacing: -0.02em;
	transition: color 0.3s ease;
}

.nav-logo-text:hover {
	color: #2a7a9a;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-menu a {
	text-decoration: none;
	color: #333;
	font-weight: 600;
	font-size: 0.95rem;
	transition: color 0.3s ease;
	position: relative;
}

.nav-menu a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: #348cb2;
	transition: width 0.3s ease;
}

.nav-menu a:hover {
	color: #348cb2;
}

.nav-menu a:hover::after {
	width: 100%;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	gap: 4px;
}

.nav-toggle span {
	width: 25px;
	height: 3px;
	background: #333;
	transition: all 0.3s ease;
}

/* Hero Section */
.parallax-hero {
	position: relative;
	height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
	background-image: url('https://images.unsplash.com/photo-1605745341112-85968b19335b?w=1920&q=80');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Pure CSS Parallax - respects reduced motion */
/* Note: background-attachment: fixed has limited mobile support (iOS Safari disables it) */
@media (prefers-reduced-motion: no-preference) {
	.parallax-hero {
		background-attachment: fixed;
	}
}

@media (prefers-reduced-motion: reduce) {
	.parallax-hero {
		background-attachment: scroll;
	}
}

/* Mobile fallback - background-attachment: fixed doesn't work reliably on iOS/mobile */
@media (max-width: 768px), (hover: none) {
	.parallax-hero {
		background-attachment: scroll;
	}
}

.parallax-hero .parallax-bg {
	display: none; /* Not needed - background on parent */
}

.parallax-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(52, 140, 178, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 10;
	max-width: 800px;
	padding: 0 2rem;
	animation: fadeInUp 1s ease-out;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero-logo {
	height: 180px;
	width: auto;
	margin-bottom: 2rem;
	filter: brightness(0) invert(1);
	/* Makes logo white for dark background */
	animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
	font-size: 4.5rem;
	font-weight: 800;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
	letter-spacing: -0.03em;
	font-family: 'Inter', sans-serif;
}

.hero-tagline {
	font-size: 1.5rem;
	margin-bottom: 2.5rem;
	font-weight: 400;
	text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
	letter-spacing: 0.01em;
}

.cta-button {
	display: inline-block;
	padding: 1rem 2.5rem;
	background: #348cb2;
	color: white;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 600;
	font-size: 1.1rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(52, 140, 178, 0.4);
}

.cta-button:hover {
	background: #2a7a9a;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(52, 140, 178, 0.5);
}

.scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	color: white;
	text-align: center;
	animation: bounce 2s infinite;
}

.scroll-indicator span {
	display: block;
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
	opacity: 0.9;
}

.scroll-arrow {
	width: 2px;
	height: 30px;
	background: white;
	margin: 0 auto;
	position: relative;
}

.scroll-arrow::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: -4px;
	width: 10px;
	height: 10px;
	border-right: 2px solid white;
	border-bottom: 2px solid white;
	transform: rotate(45deg);
}

/* Content Sections */
.content-section {
	padding: 6rem 2rem;
	background: white;
}

.section-content {
	max-width: 1200px;
	margin: 0 auto;
}

.content-section h2 {
	font-size: 3rem;
	font-weight: 700;
	color: #348cb2;
	margin-bottom: 1.5rem;
	text-align: center;
	letter-spacing: -0.03em;
	font-family: 'Inter', sans-serif;
}

.content-section .lead {
	font-size: 1.3rem;
	color: #555;
	text-align: center;
	max-width: 800px;
	margin: 0 auto 2rem;
	line-height: 1.8;
}

.section-link {
	display: inline-block;
	color: #348cb2;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1rem;
	margin-top: 1rem;
	transition: all 0.3s ease;
}

.section-link:hover {
	color: #2a7a9a;
	transform: translateX(5px);
}

/* Parallax Sections */
.parallax-section {
	position: relative;
	height: 70vh;
	min-height: 500px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Pure CSS Parallax - respects reduced motion */
/* Note: background-attachment: fixed has limited mobile support (iOS Safari disables it) */
@media (prefers-reduced-motion: no-preference) {
	.parallax-section {
		background-attachment: fixed;
	}
}

@media (prefers-reduced-motion: reduce) {
	.parallax-section {
		background-attachment: scroll;
	}
}

/* Mobile fallback - background-attachment: fixed doesn't work reliably on iOS/mobile */
@media (max-width: 768px), (hover: none) {
	.parallax-section {
		background-attachment: scroll;
	}
}

.parallax-section .parallax-bg {
	display: none; /* Not needed - background on section */
}

/* Apply background images to sections via CSS */
#containers {
	background-image: url('/assets/container.webp');
}

#ocean {
	background-image: url('https://images.unsplash.com/photo-1505142468610-359e7d316be0?w=1920&q=80');
}

#ship {
	background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1920&q=80');
}

.parallax-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(52, 140, 178, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
	z-index: 1;
}

/* Background images are now set on the sections themselves, not the .parallax-bg div */

.parallax-content {
	position: relative;
	z-index: 10;
	max-width: 800px;
	padding: 0 2rem;
}

.parallax-content h2 {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
	color: white;
	letter-spacing: -0.03em;
	font-family: 'Inter', sans-serif;
}

.parallax-content p {
	font-size: 1.3rem;
	text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
	margin-bottom: 2rem;
}

/* Services Grid */
.services-grid {
	background: #f8f9fa;
}

.services-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 3rem;
}

.service-card {
	background: white;
	padding: 2.5rem;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
	font-size: 1.8rem;
	color: #348cb2;
	margin-bottom: 1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-family: 'Inter', sans-serif;
}

.service-card p {
	color: #666;
	margin-bottom: 1.5rem;
	line-height: 1.7;
}

.card-link {
	color: #348cb2;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.card-link:hover {
	color: #2a7a9a;
}

/* Features Grid */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2.5rem;
	margin-top: 3rem;
}

.feature {
	text-align: center;
	padding: 2rem;
}

.feature h3 {
	font-size: 1.5rem;
	color: #348cb2;
	margin-bottom: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	font-family: 'Inter', sans-serif;
}

.feature p {
	color: #666;
	line-height: 1.7;
}

/* Footer */
.main-footer {
	background: #1a1a1a;
	color: white;
	padding: 3rem 2rem;
	text-align: center;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
}

.footer-content p {
	margin-bottom: 0.5rem;
}

.footer-tagline {
	color: #348cb2;
	font-weight: 600;
	font-size: 1.1rem;
}

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

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

/* Responsive Design */
@media screen and (max-width: 768px) {
	.nav-menu {
		position: fixed;
		top: 70px;
		left: -100%;
		flex-direction: column;
		background: white;
		width: 100%;
		box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
		padding: 2rem;
		transition: left 0.3s ease;
		gap: 1rem;
	}

	.nav-menu.active {
		left: 0;
	}

	.nav-toggle {
		display: flex;
	}

	.hero-logo {
		height: 120px;
		margin-bottom: 1.5rem;
	}

	.hero-tagline {
		font-size: 1.2rem;
	}

	.content-section h2,
	.parallax-content h2 {
		font-size: 2rem;
	}

	.parallax-section {
		height: 50vh;
		min-height: 400px;
	}

	.services-cards,
	.features-grid {
		grid-template-columns: 1fr;
	}

	.content-section {
		padding: 4rem 1.5rem;
	}
}

@media screen and (max-width: 480px) {
	.hero-logo {
		height: 100px;
		margin-bottom: 1rem;
	}

	.hero-tagline {
		font-size: 1rem;
	}

	.cta-button {
		padding: 0.875rem 2rem;
		font-size: 1rem;
	}

	.content-section h2,
	.parallax-content h2 {
		font-size: 1.75rem;
	}

	.parallax-content p {
		font-size: 1.1rem;
	}
}

/* Respect reduced motion preferences */
@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;
	}

	.parallax-bg,
	.parallax-hero .parallax-bg,
	.parallax-section .parallax-bg {
		background-attachment: scroll !important;
	}
}

