:root {
  --primary: #6c63ff;
  --secondary: #4a44c6;
  --accent: #ff6584;
  --dark: #2a2d3e;
  --light: #f7f9fc;
  --gray: #8c8e9a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

section {
  padding: 100px 0;
  position: relative;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-accent {
  background: var(--accent);
  box-shadow: 0 4px 15px rgba(255, 101, 132, 0.3);
}

.btn-accent:hover {
  background: #ff4d73;
  box-shadow: 0 6px 20px rgba(255, 101, 132, 0.4);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.logo img {
  height: auto;
  max-height: 60px; /* limit height for balance */
  width: auto;
  max-width: 180px; /* prevent it from becoming too large */
  object-fit: contain; /* keep proportions */
  transition: all 0.3s ease;
}

/* Responsiveness */
@media (max-width: 768px) {
  .logo {
    justify-content: center; /* center on smaller screens */
  }

  .logo img {
    max-height: 50px;
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .logo img {
    max-height: 40px;
    max-width: 120px;
  }
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  z-index: 1001;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: white;
  z-index: 999;
  transition: right 0.4s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 80px 30px 30px;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav ul li {
  margin-bottom: 20px;
}

.mobile-nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav .btn {
  margin-top: 20px;
  text-align: center;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero-section {
  width: 100%;
  height: max-content;
  background-color: #8af1c9;
}

.hero-section-nav-bar-back-color-cover-section {
  width: 100%;
  height: 18vh;
  background-color: white;
}

.hero-section-top-img-section {
  width: 100%;
  height: 20vh;
  background-image: url("https://images.unsplash.com/photo-1643576779741-7febf0b3a925?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1485");
  background-size: 100%;
  background-position: center;
  object-fit: contain;
}

.hero-section-bottom-section {
  width: 100%;
  height: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  text-align: center;
  overflow: hidden;
  background-color: white;
}

.hero-section-bottom-section div {
  width: 70%;
  height: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section-bottom-section a {
  background-color: #76beee;
  text-decoration: none;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  align-self: flex-start;
  width: max-content;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #b0b3c1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: white;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8c8e9a;
  font-size: 0.9rem;
}

/* Enhanced Responsive Styles */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3rem;
  }

  .about-content {
    gap: 50px;
  }

  .floating-card {
    width: 220px;
  }
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .about-visual {
    width: 100%;
    margin-top: 50px;
    height: 400px;
  }

  .floating-card {
    width: 200px;
    padding: 20px;
  }

  .process-steps {
    flex-wrap: wrap;
    gap: 40px;
  }

  .step {
    flex: 0 0 calc(50% - 20px);
  }

  .process-steps::before {
    display: none;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .cta h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    height: auto;
    padding: 150px 0 100px;
    min-height: auto;
  }

  .hero-content {
    text-align: center;
  }

  .hero-image {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 280px;
    margin-bottom: 15px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-visual {
    height: 350px;
  }

  .floating-card {
    width: 180px;
    padding: 15px;
  }

  .floating-card h4 {
    font-size: 1rem;
  }

  .floating-card p {
    font-size: 0.8rem;
  }

  .step {
    flex: 0 0 100%;
  }

  .cta {
    padding: 80px 0;
  }

  .cta h2 {
    font-size: 2.2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }

  section {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .service-card {
    padding: 30px 20px;
  }

  .about-visual {
    height: 300px;
  }

  .floating-card {
    width: 150px;
    padding: 15px 10px;
  }

  .floating-card:nth-child(1) {
    top: 10%;
    left: 5%;
  }

  .floating-card:nth-child(2) {
    top: 50%;
    right: 5%;
  }

  .floating-card:nth-child(3) {
    bottom: 10%;
    left: 15%;
  }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .step h3 {
    font-size: 1.2rem;
  }

  .cta h2 {
    font-size: 1.8rem;
  }

  .cta p {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: center;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .hero p {
    font-size: 1rem;
    text-align: center;
    padding: 0 10px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    height: 250px;
  }

  .floating-card {
    width: 130px;
    padding: 10px 8px;
  }

  .floating-card h4 {
    font-size: 0.9rem;
  }

  .floating-card p {
    font-size: 0.75rem;
  }

  .stat h3 {
    font-size: 2rem;
  }
}

/* Extra small devices (phones, 360px and down) */
@media (max-width: 360px) {
  .logo h1 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .section-title h2 {
    font-size: 1.7rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon i {
    font-size: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .floating-card {
    width: 120px;
  }

  .floating-card h4 {
    font-size: 0.85rem;
  }

  .floating-card p {
    font-size: 0.7rem;
  }
}

/* Orientation-specific styles */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 80px;
  }

  .hero-content {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image {
    background-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80");
  }
}

/* Print styles */
@media print {
  .btn,
  .mobile-menu,
  .hero-image,
  .social-links {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .container {
    width: 100%;
    max-width: none;
  }
}
