/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	font-size: 62.5%; /* 1rem = 10px for easier calculations */
}

body {
	font-family: "Roboto", sans-serif;
	line-height: 1.6;
	color: #050a30;
	background-color: #ffffff;
	font-size: 1.6rem; /* 16px base */
	overflow-x: hidden; /* Prevent horizontal scroll */
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding-top: 100px;
}

.league-spartan-semi-bold {
	font-family: "League Spartan", sans-serif;
	font-optical-sizing: auto;
	font-weight: 600;
	font-style: normal;
}

.league-spartan-regular {
	font-family: "League Spartan", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(1.6rem, 4vw, 2rem);
	width: 100%;
}

/* Header Styles - Enhanced for smooth transitions */
.header {
    background: #ffffff;
    z-index: 1000;
    position: fixed; /* Always fixed */
    width: 100%;
    top: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth transition */
    transform: translateY(0); /* Initial position */
    box-shadow: 0 0 0 rgba(0, 0, 0, 0); /* Invisible shadow initially */
}

.header-scroll {
    transform: translateY(0); /* Keep in place */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Fade in shadow */
    background: rgba(255, 255, 255, 0.95); /* Slight transparency */
    backdrop-filter: blur(10px); /* Modern blur effect */
}

.navbar {
	padding: clamp(1rem, 2vw, 2rem) 0;
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(1.6rem, 4vw, 2rem);
	position: relative;
}

.nav-menu {
	display: flex;
	list-style: none;
	align-items: center;
	gap: clamp(2rem, 4vw, 4rem);
}

.nav-menu a {
	text-decoration: none;
	color: #050a30;
	font-family: "Roboto", sans-serif;
	font-weight: 300;
	font-size: clamp(1.6rem, 2vw, 2rem);
	transition: color 0.3s ease;
}

.nav-menu a:hover {
	color: #531f55;
}

.contact-btn {
	background: #511f54;
	color: #f5f5f5 !important;
	padding: clamp(0.8rem, 1.5vw, 1rem) clamp(2rem, 3vw, 3rem);
	border-radius: 160px;
	font-family: "Roboto", sans-serif;
	font-weight: 700;
	font-size: clamp(1.6rem, 2vw, 2rem);
	transition: background-color 0.3s ease, transform 0.2s ease;
	white-space: nowrap;
    margin: 1rem auto !important;
}

.contact-btn:hover {
	background: #974be3;
	transform: translateY(-1px);
}

/* Hero Section */
.hero-svg img {
	width: 100%;
	max-width: 960px;
	margin: clamp(-1rem, -2%, -2rem) auto 0;
	display: block;
	height: auto;
}

.hero-subtitle {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: clamp(4rem, 12vw, 12.8rem);
	line-height: 1.02;
	color: #ffffff;
	text-shadow: 0px 4px 4px rgba(180, 89, 245, 0.9),
		0px 4px 4px rgba(0, 0, 0, 0.25);
	padding: 0 2rem;
}

/* Partition SVG - Consistent positioning for all instances */
.partition-svg {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    margin: 0 auto;
    padding: clamp(2rem, 4vh, 4rem) 0;
    transform: translateY(0);
}

.partition-svg img {
    max-width: 100%;
    height: auto;
    width: 100%;
}
/* About Section */
.about-section {
	padding: clamp(6rem, 10vh, 10rem) 0 clamp(5rem, 8vw, 8rem);
	background: #ffffff;
	position: relative;
	z-index: 5;
	min-height: clamp(80vh, 90vh, 100vh);
}

.section-title {
	font-family: "League Spartan", sans-serif;
	font-weight: 500;
	font-size: clamp(2.8rem, 5vw, 6.4rem);
	text-align: center;
	color: #000000;
	margin-bottom: clamp(3rem, 5vw, 5rem);
}

.about-text {
	font-family: "Roboto Flex", sans-serif;
	font-weight: 200;
	font-size: clamp(1.8rem, 2.8vw, 3.5rem);
	line-height: clamp(2.2rem, 3.5vw, 4rem);
	letter-spacing: 1px;
	text-align: center;
	color: #000000;
	max-width: 1131px;
	margin: 0 auto clamp(3rem, 5vw, 5rem);
	padding: 0 clamp(1.6rem, 4vw, 2rem);
}

/* Services Section */
.services-section {
	padding: clamp(6rem, 10vh, 10rem) 0 clamp(5rem, 8vw, 8rem);
	background: #ffffff;
	margin-bottom: clamp(2rem, 4vw, 4rem);
	position: relative;
	z-index: 5;
	min-height: clamp(80vh, 90vh, 100vh);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* Fixed 2-column layout for desktop */
	gap: clamp(2rem, 3vw, 3rem);
	margin-top: clamp(3rem, 5vw, 5rem);
	padding: 0 clamp(1rem, 2vw, 2rem);
}

.service-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #ffffff;
	border: 2px solid #511f54;
	border-radius: 2px;
	padding: clamp(2rem, 4vw, 4rem);
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0px 15px 30px rgba(81, 31, 84, 0.15);
}

.service-icon {
	margin-bottom: clamp(2rem, 3vw, 3rem);
	display: flex;
	align-items: flex-start;
	gap: clamp(1rem, 2vw, 2rem);
	flex-wrap: wrap;
}

.service-icon svg {
	width: clamp(6rem, 8vw, 9.6rem);
	height: clamp(5.6rem, 7.5vw, 9rem);
	flex-shrink: 0;
}

.service-icon img {
	display: inline-block;
	vertical-align: top;
	max-width: 100%;
	height: auto;
}

.service-card h3 {
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-size: clamp(2rem, 3vw, 3.6rem);
	line-height: 1.2;
	letter-spacing: clamp(1px, 0.5vw, 5px);
	color: #050a30;
	margin: 0 0 clamp(1rem, 2vw, 2rem) 0;
	flex: 1;
	min-width: 0; /* Allow text to wrap */
}

.service-card p {
	font-family: "Roboto", sans-serif;
	font-weight: 200;
	font-size: clamp(1.6rem, 2vw, 2.4rem);
	line-height: clamp(2.4rem, 3.5vw, 4rem);
	letter-spacing: normal;
	color: #000000;
	margin-top: auto;
}

/* Contact Section */
.contact-section {
	padding: clamp(6rem, 10vh, 10rem) 0 clamp(5rem, 8vw, 8rem);
	background: #ffffff;
	position: relative;
	z-index: 5;
	min-height: clamp(40vh, 50vh, 60vh);
}

.contact-subtitle {
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	font-size: clamp(2.4rem, 3vw, 3.6rem);
	line-height: 0.97;
	letter-spacing: 10%;
	text-align: center;
	color: #050a30;
	margin-bottom: clamp(3rem, 5vw, 5rem);
	margin-top: clamp(4rem, 2rem, -4.9rem);
}

.contact-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: clamp(2rem, 4vw, 4rem);
	max-width: 800px;
	margin: 0 auto;
	padding: 0 clamp(1.6rem, 4vw, 2rem);
}

.contact-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1rem, 1.5vw, 1.5rem);
	font-family: "Roboto", sans-serif;
	font-weight: 500;
	font-size: clamp(1.8rem, 2.4vw, 2.4rem);
	line-height: 1.67;
	letter-spacing: 10%;
	color: #050a30;
	padding: clamp(1rem, 2vw, 1.5rem);
	border-radius: 8px;
	transition: background-color 0.3s ease;
}

.contact-icon {
	flex-shrink: 0;
}

.contact-icon svg {
	width: clamp(2.4rem, 3vw, 3rem);
	height: clamp(2.4rem, 3vw, 3rem);
}

/* Back to Top Button */
.back-to-top {
	position: fixed;
	bottom: max(5%, env(safe-area-inset-bottom) + 2rem);
	right: max(4%, env(safe-area-inset-right) + 2rem);
	background: #050a30;
	color: white;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 99;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease;
	width: clamp(5rem, 8vw, 6rem);
	height: clamp(5rem, 8vw, 6rem);
	display: flex;
	align-items: center;
	justify-content: center;
}

.back-to-top.show {
	opacity: 1;
	visibility: visible;
    background: none;
}


/* Footer */
footer {
	background-color: #050a30;
	text-align: center;
	color: #f5f5f5;
	padding: clamp(2rem, 3vw, 2.4rem) clamp(1.6rem, 4vw, 2rem);
	margin-top: auto;
	position: relative;
	z-index: 10;
}

/* Main content wrapper to ensure footer stays at bottom */
.header,
.hero-section,
.partition-svg-1,
.about-section,
.partition-svg-2,
.services-section,
.partition-svg-3,
.contact-section {
	flex: 0 0 auto;
}

/* Responsive enhancements */
img {
	max-width: 100%;
	height: auto;
}

.logo img {
	max-width: 180px;
	height: auto;
}

/* Mobile navigation toggle */
.nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	cursor: pointer;
	padding: 0.5rem;
}

.nav-toggle .bar {
	display: block;
	width: 25px;
	height: 3px;
	background: #050a30;
	margin: 3px 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}
/*=========================================================*/
/* Override hero sizing with fluid typography */
.hero {
	width: 100%;
	min-height: clamp(50vh, 70vh, 80vh);
    height: auto;
	text-align: center;
	color: white;
	position: relative;
	overflow: hidden;
}

.hero-title {
	font-weight: 600;
	line-height: 1.02;
	color: #ffffff;
	padding: clamp(2rem, 4vw, 4rem) clamp(1.6rem, 4vw, 1rem) 0;
	font-size: clamp(3.2rem, 8vw, 10rem);
	letter-spacing: clamp(0.2rem, 1vw, 1rem);
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-svg {
	margin: clamp(1rem, 5vh, 5vh) auto;
    width: min(90%, 1200px);
/* Removed duplicate .hero-svg img selector. Styles merged above. */
	display: block;
	height: auto;
}

.potential {
    font-weight: 300;
    color: #050a30;
    display: block;
    letter-spacing: normal;
    line-height: 1.2;
}

.elevate {
    font-weight: 300;
    color: #050a30;
    letter-spacing: normal;
    line-height: 1.2;
}

/* Tweak partition spacing */
.partition-svg img {
	margin: clamp(0.5rem, 1.5vw, 1.5rem) auto;
	max-width: 100%;
	width: 100%;
	height: auto;
}

/* Fluid headings and text - Enhanced for better readability */
.section-title {
	font-size: clamp(2.8rem, 5vw, 6.4rem);
	margin-bottom: clamp(2rem, 4vw, 4rem);
}

.about-text {
	font-size: clamp(1.8rem, 3rem, 4rem);
	line-height: clamp(2.4rem, 3vw, 3.2rem);
	max-width: min(90%, 1000px);
    line-height: 1.2;
}

.best-services {
    display: block;
}
/* Service card typography improvements */
.service-card h3 {
	font-size: clamp(1.8rem, 3vw, 3.6rem);
	letter-spacing: clamp(0.5px, 0.6vw, 5px);
	margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

.service-card p {
	font-size: clamp(1.4rem, 2rem, 2rem);
    line-height: clamp(2rem, 2.4rem, 3.2rem);
}

/* Footer padding for better spacing */
footer {
	padding: clamp(2rem, 3vw, 2.4rem) clamp(1.6rem, 4vw, 2rem);
	font-size: clamp(1.4rem, 1.8vw, 1.6rem);
}

/* Respect device safe areas for floating button */
.back-to-top {
	right: max(4%, env(safe-area-inset-right) + 1.6rem);
	bottom: max(5%, env(safe-area-inset-bottom) + 1.6rem);
}

/* Logo responsive sizing */
.logo img {
	max-width: clamp(120px, 15vw, 180px);
	height: auto;
}

/* Improved responsive grid systems */
.services-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: clamp(1.5rem, 3vw, 3rem);
}

.contact-info {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: clamp(1.5rem, 3vw, 3rem);
}

/* Enhanced mobile-first breakpoints */

/* Large Desktop (1440px and up) - 2 columns */
@media (min-width: 1440px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: clamp(3rem, 4vw, 4rem);
		max-width: 1200px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Desktop (1200px - 1439px) - 2 columns */
@media (max-width: 1439px) and (min-width: 1200px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: clamp(2.5rem, 3.5vw, 3.5rem);
	}
}

/* Laptop Large (1024px - 1199px) - 2 columns */
@media (max-width: 1199px) and (min-width: 1024px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: clamp(2rem, 3vw, 3rem);
	}
}

/* Laptop Small/Tablet Landscape (768px - 1023px) - 2 columns */
@media (max-width: 1023px) and (min-width: 768px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: clamp(1.5rem, 2.5vw, 2.5rem);
	}
	
	.service-card {
		padding: clamp(1.5rem, 2.5vw, 2.5rem);
	}
}

@media (max-width: 1200px) {
	.container {
		padding: 0 clamp(1.6rem, 3vw, 2rem);
	}
}

@media (max-width: 992px) {
	.nav-container {
		position: relative;
	}
	
	.nav-toggle {
		display: flex;
	}
	
	.nav-menu {
		position: absolute;
		top: 100%;
		right: 2rem;
		left: 2rem;
		background: #ffffff;
		flex-direction: column;
		gap: 0;
		padding: 0;
		border-radius: 12px;
		border: 1px solid rgba(0, 0, 0, 0.06);
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
		display: none;
		overflow: hidden;
	}
	
	.nav-menu.active {
		display: flex;
		animation: slideDown 0.3s ease-out;
	}
	
	.nav-menu li {
		width: 100%;
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	}
	
	.nav-menu li:last-child {
		border-bottom: none;
	}
	
	.nav-menu a {
		padding: 1.5rem 2rem;
		font-size: clamp(1.6rem, 2vw, 1.8rem);
		display: block;
		width: 100%;
		text-align: center;
		transition: background-color 0.2s ease, color 0.2s ease;
	}
	
	.nav-menu a:hover {
		color: #531f55;
	}
	
	.contact-btn {
		align-self: center;
		text-align: center;
		margin: 1rem;
		font-size: clamp(1.6rem, 2vw, 1.8rem);
		padding: 1.2rem 2rem;
		width: calc(100% - 2rem);
		max-width: 200px;
	}
	
	.hero {
		min-height: clamp(50vh, 80vh, 100vh);
	}
	
	.service-icon {
		flex-direction: row;
		align-items: center;
		gap: clamp(1rem, 2vw, 2rem);
	}
	
	.service-icon svg {
		width: clamp(4rem, 6vw, 7.2rem);
		height: clamp(3.6rem, 5.5vw, 6.5rem);
	}
	
	.service-card h3 {
		margin: 0 0 1rem 0;
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1024px) {
	.nav-container {
		padding: 0 1.6rem;
	}
	
	.nav-menu {
		right: 1.6rem;
		left: 1.6rem;
	}
	
	.hero-title {
		font-size: clamp(10rem, 6vw, 4.5rem);
		letter-spacing: clamp(0.1rem, 0.5vw, 0.5rem);
	}
	
	.contact-item {
		gap: 1.2rem;
		font-size: clamp(1.6rem, 2.2vw, 2rem);
		flex-direction: column;
		text-align: center;
	}
	
	.services-grid {
		grid-template-columns: 1fr;
		gap: clamp(1.5rem, 3vw, 2rem);
	}
	
	.service-card {
		padding: clamp(1.5rem, 3vw, 2.5rem);
	}
	
	.service-icon {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
    .partition-svg {
        width: 100%;
    }
}

/* Tablet Portrait and Mobile (767px and below) - 1 column */
@media (max-width: 767px) {
	.nav-container {
		padding: 0 1.6rem;
	}
	.partition-svg {
        width: 100%;
    }
	.nav-menu {
		right: 1.6rem;
		left: 1.6rem;
	}
	
	.hero-title {
		font-size: clamp(10rem, 6vw, 4.5rem);
		letter-spacing: clamp(0.1rem, 0.5vw, 0.5rem);
	}
	
	.contact-item {
		gap: 1.2rem;
		font-size: clamp(1.6rem, 2.2vw, 2rem);
		flex-direction: column;
		text-align: center;
	}
	
	.services-grid {
		grid-template-columns: 1fr;
		gap: clamp(1.5rem, 3vw, 2rem);
	}
	
	.service-card {
		padding: clamp(1.5rem, 3vw, 2.5rem);
	}
	
	.service-icon {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
	
	.about-section,
	.services-section,
	.contact-section {
		padding: clamp(3rem, 8vw, 6rem) 0;
	}
}

@media (max-width: 480px) {
	.logo img {
		max-width: clamp(100px, 12vw, 140px);
	}
	.partition-svg {
        width: 100%;
    }
    .hero-title {
        font-size: clamp(8rem, 9rem, 9rem);
    }
	.about-text {
        font-size: clamp(1.8rem, 2vw, 2.2rem);
        line-height: clamp(2.4rem, 2vw, 3.2rem);
        max-width: min(90%, 1000px);
    }
	.nav-menu {
		right: 1.2rem;
		left: 1.2rem;
	}
	
	.nav-menu a {
		padding: 1.2rem 1.5rem;
	}
	
	.contact-btn {
		margin: 1rem auto !important;
		padding: 1rem 1.5rem;
	}
	
	.back-to-top {
		right: 1.6rem;
		bottom: 6.6rem;
	}
	
	.hero-svg {
		width: 95%;
		margin: clamp(1rem, 5vh, 5vh) auto;
	}
	
	.service-card h3 {
		font-size: clamp(1.6rem, 4vw, 2.2rem);
		letter-spacing: clamp(0.5px, 1vw, 2px);
	}
	
	.service-card p {
		font-size: clamp(1.3rem, 3.5vw, 1.6rem);
		line-height: clamp(1.8rem, 4.5vw, 2.2rem);
	}
	
	contact-item {
		font-size: clamp(1.4rem, 4vw, 1.8rem);
		padding: 1rem 0.5rem;
	}
}

/* High DPI / Retina display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
	.service-icon img, 
	.hero-svg img, 
	.logo img {
		image-rendering: -webkit-optimize-contrast;
		image-rendering: crisp-edges;
	}
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
	.hero {
		min-height: 90vh;
	}
	
	.hero-title {
		font-size: clamp(2rem, 5vw, 3.5rem);
		padding-top: clamp(1rem, 2vw, 2rem);
	}
	
	hero-svg {
		margin: clamp(1rem, 3vh, 3vh) auto;
	}
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	/* Dark mode styles removed to maintain original design */
}
