* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}
body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #59638b, #6a77a4);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: transparent;
  position: absolute;
  width: 100%;
  z-index: 10;
}
header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}
nav a {
	margin-left: 25px;
	text-decoration: none;
	color: #ffffff;
	font-weight: 500;
	transition: color 0.3s;
}

nav a:hover, nav a.active {
	color: rgba(255, 255, 255, 0.623);
}
.btn-login {
  padding: 8px 16px;
  border: 2px solid #59638b;
  border-radius: 6px;
  background: #59638b;
  color: #fff;
  margin-left: 15px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-login:hover {
  background: #fff;
  color: #59638b;
}

.services-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #59638b, #6a77a4);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 0 8%;
}
.services-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}
.services-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  max-width: 600px;
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.service-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 25px 30px;
  width: 280px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}
.service-box:nth-child(1) { animation-delay: 0.4s; }
.service-box:nth-child(2) { animation-delay: 0.6s; }
.service-box:nth-child(3) { animation-delay: 0.8s; }

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.service-box h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fff;
}
.service-box p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}
.btn-primary {
  text-decoration: none;
  background: #fff;
  color: #59638b;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  background: rgba(255,255,255,0.85);
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: #5e5e5e;
  mix-blend-mode: overlay;
}
.circle.one {
  width: 200px;
  height: 200px;
  top: -50px;
  right: 50px;
  background: #5e5e5e;
}
.circle.two {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -100px;
  background: #5e5e5e;
}
.circle.three {
  width: 150px;
  height: 150px;
  top: 200px;
  left: 60%;
  background: #5e5e5e;
}

footer {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .services-hero h1 {
    font-size: 2.2rem;
  }
  .services-container {
    flex-direction: column;
    align-items: center;
  }
  header {
    padding: 15px 20px;
  }
}
@media (max-width: 500px) {
  .service-box {
    width: 90%;
  }
  .circle {
    display: none;
  }
}

/* ===== EXTRA MOBILE SUPPORT ===== */
@media (max-width: 768px) {

    /* Allow mobile scrolling */
    html, body {
        overflow-y: auto !important;
        height: auto !important;
    }

    header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    nav a {
        margin-left: 15px;
        font-size: 0.9rem;
    }

    .services-hero {
        padding: 140px 20px 60px;
        height: auto !important;
    }

    .services-hero h1 {
        font-size: 2rem;
    }

    .services-hero p {
        font-size: 1rem;
        max-width: 90%;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .service-box {
        width: 90%;
        max-width: 350px;
        padding: 20px 25px;
    }

    footer {
        position: relative;
        margin-top: 40px;
        bottom: unset;
        transform: none;
        text-align: center;
        width: 100%;
        font-size: 0.8rem;
    }
}

/* Extra small phones */
@media (max-width: 430px) {
    header .logo {
        font-size: 1.4rem;
    }

    nav a {
        margin-left: 10px;
        font-size: 0.8rem;
    }

    .services-hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .services-hero p {
        font-size: 0.9rem;
    }

    .service-box {
        width: 95%;
        padding: 18px 20px;
    }

    .btn-primary {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.75rem;
    }
}

.hamburger {
	display: none;
	flex-direction: column;
	gap: 6px;
	cursor: pointer;
	z-index: 50;
}

.hamburger span {
	width: 30px;
	height: 3px;
	background: white;
	border-radius: 3px;
	transition: 0.4s ease;
}

.hamburger.active span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
	opacity: 0;
}
.hamburger.active span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

.overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.4);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: 0.3s ease;
	z-index: 30;
}

.overlay.show {
	opacity: 1;
	visibility: visible;
}

@media (max-width: 768px) {
	.hamburger { display: flex; }
	nav {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: rgba(20, 25, 40, 0.92);
		backdrop-filter: blur(10px);
		flex-direction: column;
		gap: 18px;
		padding: 0;
		overflow: hidden;
		max-height: 0;
		opacity: 0;
		transition: max-height 0.45s ease, opacity 0.35s ease;
		z-index: 40;
	}
	nav.open {
		padding: 20px 0 30px 0;
		max-height: 400px;
		opacity: 1;
	}
	nav a {
		color: white;
		font-size: 1rem;
		text-align: center;
		padding: 10px 0;
		margin: 0;
		width: 100%;
	}
	.btn-login {
		width: 100%;
		margin: 0;
		border-color: white;
		background: rgba(255,255,255,0.15);
		text-align: center;
	}
	header {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

.dropdown-menu {
	display: none;
	flex-direction: column;
	width: 100%;
	background: rgba(0, 0, 0, 0.8);
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.4s ease;
}

.dropdown-menu.open {
	display: flex;
	max-height: 500px;
}

.dropdown-menu a {
	display: block;
	width: 100%;
	padding: 12px 20px;
	color: #fff;
	text-decoration: none;
	background: rgba(255,255,255,0.05);
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu a:hover {
	background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
	#navMenu, header nav {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0 !important;
		width: 100% !important;
	}
	#navMenu a, header nav a {
		display: block !important;
		width: 100% !important;
		margin-left: 0 !important;
		padding: 14px 20px !important;
		box-sizing: border-box !important;
		text-align: center !important;
		border-bottom: 1px solid rgba(255,255,255,0.06) !important;
		color: #fff !important;
	}
	#navMenu a.btn-login, header nav a.btn-login {
		background: rgba(255,255,255,0.12) !important;
		border-color: rgba(255,255,255,0.18) !important;
		margin-left: 0 !important;
	}
	#navMenu {
		max-height: 0 !important;
		overflow: hidden !important;
		transition: max-height 0.45s ease, opacity 0.35s ease;
	}
	#navMenu.open {
		max-height: 500px !important;
		opacity: 1 !important;
	}
}
