: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;
  z-index: 111;
  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;
  background: rgba(255, 255, 255, 0.95);
}

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 {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

nav ul {
  display: flex;
  align-items: 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 {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.1;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 50%;
  flex: 0 0 50%;
  padding-right: 40px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--dark);
}

.hero h1 span {
  color: var(--primary);
  position: relative;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(108, 99, 255, 0.2);
  z-index: -1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--gray);
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0 0 50%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
  background: var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.1;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  position: relative;
}

.service-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: #b0b3c1;
}

/* About Section */
.about {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}

.about::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.05;
  z-index: 1;
}

.about::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.05;
  z-index: 1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-text h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: var(--dark);
  position: relative;
}

.about-text h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.about-text p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 1.1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.stat {
  text-align: center;
  padding: 35px 25px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(108, 99, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.stat:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(108, 99, 255, 0.15);
}

.stat:hover::before {
  opacity: 0.03;
}

.stat h3 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1;
  transition: all 0.3s ease;
}

.stat:hover h3 {
  color: var(--secondary);
}

.stat p {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.stat:hover p {
  color: var(--dark);
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.floating-card {
  background: white;
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(108, 99, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.floating-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--primary);
  transition: all 0.4s ease;
}

.floating-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.floating-card:hover::before {
  width: 8px;
}

.floating-card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.floating-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* Process Section */
.process {
  background: var(--light);
  position: relative;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 60px;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  opacity: 0.2;
}

.step {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 25px;
  position: relative;
}

.step h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.step p {
  color: var(--gray);
  max-width: 250px;
  margin: 0 auto;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  z-index: -1;
  background: rgba(255, 255, 255, 0.05);
}

.cta h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

/* 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: 60px;
  }
}

@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .stat {
    padding: 30px 20px;
  }

  .stat h3 {
    font-size: 2.5rem;
  }

  .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 Section - Mobile Fix */
  .hero {
    height: auto;
    min-height: auto;
    padding: 150px 0 80px;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    flex: 0 0 100%;
    padding-right: 0;
    margin-bottom: 50px;
  }

  .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: repeat(2, 1fr);
    gap: 20px;
  }

  .stat {
    padding: 30px 20px;
  }

  .stat h3 {
    font-size: 2.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-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat {
    padding: 25px 15px;
  }

  .stat h3 {
    font-size: 2.2rem;
  }

  .stat p {
    font-size: 0.9rem;
  }

  .floating-card {
    padding: 25px 20px;
  }

  .floating-card h4 {
    font-size: 1.3rem;
  }

  .floating-card p {
    font-size: 0.95rem;
  }

  .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: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat {
    padding: 30px 25px;
  }

  .stat h3 {
    font-size: 2.5rem;
  }

  .floating-card {
    padding: 25px 20px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat h3 {
    font-size: 2.2rem;
  }
}

/* Extra small devices (phones, 360px and down) */
@media (max-width: 360px) {
  .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;
  }

  .stat {
    padding: 25px 20px;
  }

  .stat h3 {
    font-size: 2rem;
  }

  .floating-card {
    padding: 22px 18px;
  }

  .floating-card h4 {
    font-size: 1.2rem;
  }

  .floating-card p {
    font-size: 0.9rem;
  }
}

/* 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;
  }
}

/* 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;
  }
}
