/**
 * sections.css
 *
 * Contains styles for specific sections of the website like hero,
 * features, how it works, gallery, pricing, etc.
 */

/* ========================
   HERO SECTION
   ======================== */
.hero {
	height: 100vh;
	display: flex;
	align-items: center;
	position: relative;
	background: linear-gradient(135deg, #3498db, #8e44ad);
	color: white;
	overflow: hidden;
}

.hero-content {
	position: relative;
	z-index: 2;
}

.hero h1 {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	animation: fadeInDown 1s ease;
	color: white;
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 30px;
	max-width: 600px;
	animation: fadeInUp 1s ease 0.3s;
	animation-fill-mode: both;
	color: white;
}

.hero-image {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 50%;
	height: 90%;
	background-size: cover;
	background-position: center;
	clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
	animation: fadeInRight 1s ease 0.5s;
	animation-fill-mode: both;
}

/* Animated circles background */
.circles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.circles li {
	position: absolute;
	display: block;
	list-style: none;
	width: 20px;
	height: 20px;
	background: rgba(255, 255, 255, 0.2);
	animation: animate 25s linear infinite;
	bottom: -150px;
	border-radius: 50%;
}

.circles li:nth-child(1) {
	left: 25%;
	width: 80px;
	height: 80px;
	animation-delay: 0s;
}

.circles li:nth-child(2) {
	left: 10%;
	width: 20px;
	height: 20px;
	animation-delay: 2s;
	animation-duration: 12s;
}

.circles li:nth-child(3) {
	left: 70%;
	width: 20px;
	height: 20px;
	animation-delay: 4s;
}

.circles li:nth-child(4) {
	left: 40%;
	width: 60px;
	height: 60px;
	animation-delay: 0s;
	animation-duration: 18s;
}

.circles li:nth-child(5) {
	left: 65%;
	width: 20px;
	height: 20px;
	animation-delay: 0s;
}

.circles li:nth-child(6) {
	left: 75%;
	width: 110px;
	height: 110px;
	animation-delay: 3s;
}

.circles li:nth-child(7) {
	left: 35%;
	width: 150px;
	height: 150px;
	animation-delay: 7s;
}

.circles li:nth-child(8) {
	left: 50%;
	width: 25px;
	height: 25px;
	animation-delay: 15s;
	animation-duration: 45s;
}

.circles li:nth-child(9) {
	left: 20%;
	width: 15px;
	height: 15px;
	animation-delay: 2s;
	animation-duration: 35s;
}

.circles li:nth-child(10) {
	left: 85%;
	width: 150px;
	height: 150px;
	animation-delay: 0s;
	animation-duration: 11s;
}

@keyframes animate {
	0% {
		transform: translateY(0) rotate(0deg);
		opacity: 1;
		border-radius: 0;
	}
	100% {
		transform: translateY(-1000px) rotate(720deg);
		opacity: 0;
		border-radius: 50%;
	}
}

/* ========================
   FEATURES SECTION
   ======================== */
.features {
	background-color: var(--background);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

/* ========================
   HOW IT WORKS SECTION
   ======================== */
.how-it-works {
	background-color: var(--section-alt-bg);
}

.timeline {
	max-width: 900px;
	margin: 0 auto;
	position: relative;
	padding: 40px 0;
}

.timeline::before {
	content: "";
	position: absolute;
	width: 4px;
	height: 100%;
	background: linear-gradient(to bottom, var(--primary), var(--secondary));
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 4px;
	z-index: 1;
}

.timeline-item {
	margin-bottom: 70px;
	position: relative;
	z-index: 2;
	clear: both;
}

.timeline-item:last-child {
	margin-bottom: 0;
}

.timeline-dot {
	position: absolute;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	left: 50%;
	top: 0;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	color: white;
	font-weight: 700;
	font-size: 1.3rem;
}

.timeline-dot span {
	position: relative;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

.timeline-content {
	width: 45%;
	padding: 30px;
	border-radius: 10px;
	background-color: white;
	box-shadow: 0 5px 15px var(--box-shadow);
	transition: all var(--transition-medium);
	position: relative;
	margin-bottom: 10px;
	color: var(--text-color);
}

[data-theme="dark"] .timeline-content {
	background-color: var(--card-bg);
}

.timeline-content.left {
	float: left;
}

.timeline-content.right {
	float: right;
}

.timeline-content:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px var(--box-shadow-hover);
}

.timeline-content::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	background-color: white;
	top: 15px;
	transform: rotate(45deg);
	box-shadow: 3px -3px 5px var(--box-shadow);
}

[data-theme="dark"] .timeline-content::after {
	background-color: var(--card-bg);
}

.timeline-content.left::after {
	right: -10px;
}

.timeline-content.right::after {
	left: -10px;
	box-shadow: -3px 3px 5px var(--box-shadow);
}

.timeline-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: var(--section-alt-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	font-size: 2rem;
	transition: all var(--transition-medium);
	box-shadow: 0 5px 15px var(--box-shadow);
}

.timeline-content:hover .timeline-icon {
	transform: rotateY(180deg);
}

.timeline-content h3 {
	margin-bottom: 10px;
	font-size: 1.4rem;
	color: var(--primary);
}

/* ========================
   GALLERY SECTION
   ======================== */
.gallery-wrapper {
	max-width: 1200px;
	margin: 0 auto;
}

.gallery-filters {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.gallery-filter {
	background: none;
	border: 2px solid var(--primary);
	color: var(--primary);
	padding: 8px 20px;
	margin: 0 10px 10px;
	border-radius: 30px;
	cursor: pointer;
	font-weight: 600;
	transition: all var(--transition-medium);
}

.gallery-filter.active,
.gallery-filter:hover {
	background-color: var(--primary);
	color: white;
}

.gallery-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 30px;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 15px;
	height: 300px;
	cursor: pointer;
	box-shadow: 0 10px 20px var(--box-shadow);
	transition: all 0.5s ease;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.7s ease;
}

.gallery-item:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 30px var(--box-shadow-hover);
}

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

.gallery-item::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
	opacity: 0.5;
	transition: all var(--transition-medium);
}

.gallery-item:hover::after {
	opacity: 0.8;
}

.gallery-item-title {
	position: absolute;
	bottom: 20px;
	left: 20px;
	color: white;
	z-index: 2;
	font-size: 1.2rem;
	font-weight: 600;
	transition: all var(--transition-medium);
}

.gallery-item:hover .gallery-item-title {
	bottom: 30px;
}

.gallery-more {
	text-align: center;
	margin-top: 40px;
}

/* ========================
   PRICING SECTION
   ======================== */
.pricing {
	background-color: var(--background);
}

.pricing-container {
	display: flex;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
	margin: 0 auto;
}

.pricing-card {
	background-color: white;
	border-radius: 10px;
	box-shadow: 0 5px 15px var(--box-shadow);
	transition: all var(--transition-medium);
	text-align: center;
	flex: 1;
	max-width: 400px; /* Equal width for both cards */
	position: relative;
	display: flex;
	flex-direction: column;
	color: var(--text-color);
}

[data-theme="dark"] .pricing-card {
	background-color: var(--card-bg);
}

.premium-card {
	border: 2px solid var(--primary);
	transform: scale(1.05);
	position: relative;
	overflow: visible;
}

.pricing-badge {
	position: absolute;
	top: -20px;
	right: -20px;
	background: linear-gradient(135deg, #ff4e50, #f9d423);
	color: white;
	padding: 8px 15px;
	border-radius: 30px;
	font-weight: bold;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	z-index: 10;
	transform: rotate(5deg);
}

.premium-card .pricing-header {
	background: linear-gradient(135deg, var(--primary), #9b59b6);
	padding: 40px 20px;
}

.premium-card .pricing-price {
	font-size: 3.5rem;
	margin: 10px 0;
	color: white;
}

.premium-card:hover {
	transform: scale(1.08);
	box-shadow: 0 30px 60px var(--box-shadow-hover);
}

.pricing-extra {
	text-align: center;
	margin-top: 30px;
	padding: 20px;
	background-color: var(--section-alt-bg);
	border-radius: 10px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	color: var(--text-color);
}

.pricing-extra p {
	margin: 10px 0;
	font-size: 1.1rem;
}

.pricing-extra a {
	color: var(--primary);
	text-decoration: underline;
	transition: all var(--transition-medium);
}

.pricing-extra a:hover {
	color: var(--secondary);
}

.pricing-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px var(--box-shadow-hover);
}

.premium-card:hover {
	transform: scale(1.08);
}

.pricing-header {
	padding: 30px 20px;
	background-color: var(--primary);
	color: white;
}

.pricing-title {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: white;
}

.pricing-price {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 10px;
	color: white;
}

.pricing-duration {
	font-size: 0.9rem;
	opacity: 0.8;
	color: white;
}

.pricing-features {
	padding: 30px 20px;
	list-style: none;
	flex-grow: 1; /* Allow features section to grow to match the tallest card */
}

.pricing-features li {
	padding: 10px 0;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-color);
}

.pricing-features li:last-child {
	border-bottom: none;
}

.pricing-footer {
	padding: 20px;
	background-color: var(--section-alt-bg);
}

/* Google Maps Container */
.maps-container {
	margin-top: 50px;
	background-color: white;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 5px 15px var(--box-shadow);
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

[data-theme="dark"] .maps-container {
	background-color: var(--card-bg);
}

.maps-title {
	padding: 20px;
	font-size: 1.5rem;
	text-align: center;
	background-color: var(--primary);
	color: white;
	margin: 0;
}

.maps-wrapper {
	width: 100%;
	height: 400px;
	position: relative;
}

.maps-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.maps-info {
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	background-color: var(--section-alt-bg);
	gap: 15px;
}

.maps-info p {
	margin: 0;
	flex: 1;
	min-width: 300px;
	font-size: 1.1rem;
	color: var(--text-color);
}

.maps-info i {
	color: var(--primary);
	margin-right: 5px;
}

.maps-link {
	color: var(--primary);
	text-decoration: underline;
	font-weight: 600;
	transition: all var(--transition-medium);
}

.maps-link:hover {
	color: var(--secondary);
}

/* ========================
   FAQ SECTION
   ======================== */
.faq {
	background-color: var(--section-alt-bg);
}

.accordion {
	max-width: 800px;
	margin: 0 auto;
}

/* ========================
   TESTIMONIALS SECTION
   ======================== */
.testimonials {
	background-color: var(--background);
	text-align: center;
}

.testimonial-container {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
}

.testimonial-slide {
	display: none;
	padding: 20px;
	text-align: center;
}

.testimonial-slide.active {
	display: block;
	animation: fadeIn 0.5s ease;
}

.testimonial-content {
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 20px;
	position: relative;
	color: var(--text-color);
}

.testimonial-content::before {
	content: "\201C";
	font-size: 4rem;
	position: absolute;
	left: -20px;
	top: -30px;
	color: rgba(52, 152, 219, 0.2);
	font-family: Georgia, serif;
}

.testimonial-author {
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--text-color);
}

.testimonial-role {
	color: var(--gray);
	font-size: 0.9rem;
	margin-top: 5px;
}

.testimonial-nav {
	margin-top: 30px;
}

.testimonial-nav button {
	background: none;
	border: none;
	font-size: 1.5rem;
	color: var(--gray);
	cursor: pointer;
	transition: color var(--transition-medium);
	margin: 0 10px;
}

.testimonial-nav button:hover {
	color: var(--primary);
}

/* ========================
   CONTACT SECTION
   ======================== */
.contact {
	background-color: var(--light);
	color: var(--dark);
}

[data-theme="dark"] .contact {
	color: var(--light);
}

.contact-container {
	display: flex;
	flex-wrap: wrap;
	gap: 50px;
}

.contact-info {
	flex: 1;
	min-width: 300px;
	background-color: white;
	border-radius: 15px;
	padding: 35px 30px;
	box-shadow: 0 5px 20px var(--box-shadow);
	display: flex;
	flex-direction: column;
}

[data-theme="dark"] .contact-info {
	background-color: var(--form-bg);
}

.contact-info-title {
	font-size: 2rem;
	margin-bottom: 15px;
	color: var(--primary);
	text-align: center;
}

.contact-intro {
	text-align: center;
	margin-bottom: 30px;
	font-size: 1.1rem;
	color: var(--text-color);
}

.contact-items-container {
	margin: 10px 0 30px;
}

.contact-item {
	display: flex;
	margin-bottom: 25px;
	align-items: center;
	transition: all var(--transition-medium);
}

.contact-item:hover {
	transform: translateX(5px);
}

.contact-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: rgba(52, 152, 219, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 20px;
	font-size: 1.4rem;
	box-shadow: 0 4px 10px var(--box-shadow);
	transition: all var(--transition-medium);
}

.contact-item:hover .contact-icon {
	background-color: var(--primary);
	transform: scale(1.1);
}

.contact-detail {
	flex: 1;
}

.contact-detail h4 {
	margin-bottom: 5px;
	color: var(--text-color);
	font-size: 1.2rem;
}

.contact-detail p {
	color: var(--text-color);
	line-height: 1.5;
	font-size: 1.05rem;
}

.contact-cta {
	display: flex;
	gap: 15px;
	margin-top: auto;
	justify-content: center;
}

/* Contact Form */
.contact-form {
	background-color: white;
	border-radius: 15px;
	padding: 35px;
	box-shadow: 0 10px 30px var(--box-shadow);
}

[data-theme="dark"] .contact-form {
	background-color: var(--form-bg);
}

.form-intro {
	text-align: center;
	margin-bottom: 35px;
}

.form-intro h3 {
	font-size: 1.6rem;
	margin-bottom: 10px;
	color: var(--text-color);
}

.form-intro p {
	color: var(--text-color);
	opacity: 0.7;
	font-size: 1.05rem;
}

.form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 25px;
}

.form-footer {
	text-align: center;
	margin-top: 25px;
	font-size: 0.95rem;
	color: var(--text-color);
	opacity: 0.7;
}

.inquiry-type {
	flex-direction: column;
	margin: 25px 0;
}

.privacy-row {
	margin: 30px 0;
}

.privacy-row a {
	color: var(--primary);
	text-decoration: underline;
}
