/* Modern Reset */
:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #ffffff;
  --bg-gray: #f9fafb;
  --bg-gray-100: #f3f4f6;
  --border-light: rgba(229, 231, 235, 0.8);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-icon {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(79, 70, 229, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1000;
  width: 0%;
  transition: width 0.2s ease;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(79, 70, 229, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  display: none;
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s, height 0.3s;
  display: none;
}

/* Header & Navigation */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 100;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.modern-header.scrolled {
  padding: 0.6rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.modern-navbar {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.modern-navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modern-logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.modern-logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.modern-nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.modern-nav-links li a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
  position: relative;
  padding: 0.4rem 0;
}

.modern-nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.modern-nav-links li a:hover {
  color: var(--primary);
}

.modern-nav-links li a:hover::after {
  width: 100%;
}

.modern-nav-toggle {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 20;
}

.modern-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.modern-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-gray);
  padding: 8rem 0 6rem;
}

.modern-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  z-index: 1;
}

.modern-hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.modern-hero-content {
  flex: 1 1 550px;
}

.modern-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1) both;
}

.modern-hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1) 0.2s both;
}

.modern-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1) 0.4s both;
}

.modern-button {
  padding: 0.875em 2em;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modern-button-primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
}

.modern-button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.modern-button-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary-light);
}

.modern-button-outline:hover {
  background: rgba(79, 70, 229, 0.1);
  transform: translateY(-3px);
}

.modern-hero-image {
  flex: 1 1 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1) 0.5s both;
}

.modern-hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  transition: all 0.5s ease;
}

.modern-hero-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 20px;
  transform: rotate(-5deg);
  z-index: 1;
  transition: all 0.5s ease;
}

.modern-hero-container:hover .modern-hero-image img {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.modern-hero-container:hover .modern-hero-image::before {
  transform: rotate(-8deg) scale(1.05);
}

/* Services Section */
.modern-services {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
}

.modern-services-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.modern-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.modern-section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.modern-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

.modern-section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.modern-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.modern-service-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modern-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.modern-service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.modern-service-card:hover::before {
  transform: scaleX(1);
}

.modern-service-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.modern-service-card:hover .modern-service-icon {
  background: rgba(79, 70, 229, 0.2);
  transform: scale(1.1);
}

.modern-service-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--primary);
}

.modern-service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  position: relative;
}

.modern-service-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.modern-service-card:hover .modern-service-title::after {
  width: 60px;
}

.modern-service-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modern-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.modern-service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.modern-service-link:hover {
  color: var(--accent);
}

.modern-service-link:hover svg {
  transform: translateX(4px);
}

/* Features Section */
.modern-features {
  padding: 100px 0;
  background: var(--bg-gray);
  position: relative;
  overflow: hidden;
}

.modern-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0V0zm2 2v16h16V2H2z' fill='%234f46e5' fill-opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.modern-features-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.modern-feature-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 8rem;
  flex-wrap: wrap;
}

.modern-feature-row:last-child {
  margin-bottom: 0;
}

.modern-feature-row.reverse {
  flex-direction: row-reverse;
}

.modern-feature-content {
  flex: 1 1 450px;
}

.modern-feature-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.modern-feature-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.modern-feature-row:hover .modern-feature-title::after {
  width: 100px;
}

.modern-feature-row.reverse .modern-feature-title::after {
  left: auto;
  right: 0;
}

.modern-feature-description {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.modern-feature-image {
  flex: 1 1 450px;
  position: relative;
}

.modern-feature-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: all 0.5s ease;
}

.modern-feature-row:hover .modern-feature-image img {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.modern-cta {
  padding: 100px 0;
  background: linear-gradient(120deg, var(--primary-light), var(--primary-dark));
  position: relative;
  overflow: hidden;
  color: white;
}

.modern-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0V0zm2 2v16h16V2H2z' fill='white' fill-opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.modern-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.modern-cta-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.modern-cta-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.modern-cta-description {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0.9;
}

.modern-cta-button {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 1.1rem;
}

.modern-cta-button:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.modern-footer {
  background: var(--bg-gray-100);
  padding: 5rem 0 2rem;
  color: var(--text-dark);
  position: relative;
}

.modern-footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.modern-footer-about {
  flex: 1 1 300px;
}

.modern-footer-about h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.modern-footer-about p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.modern-footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modern-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-light);
  border-radius: 50%;
  color: var(--primary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.modern-footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.modern-footer-links {
  flex: 1 1 200px;
}

.modern-footer-links h5 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.modern-footer-links ul {
  list-style: none;
}

.modern-footer-links ul li {
  margin-bottom: 0.8rem;
}

.modern-footer-links ul li a {
  color: var(--text-light);
  transition: all 0.3s ease;
  display: inline-block;
}

.modern-footer-links ul li a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.modern-footer-bottom {
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 2rem 2rem 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.modern-footer-bottom p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.5s;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Media Queries */
@media (max-width: 768px) {
  .modern-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    gap: 2rem;
    z-index: 10;
  }

  .modern-nav-links.nav-active {
    right: 0;
  }

  .modern-nav-toggle {
    display: block;
  }

  .modern-nav-toggle.nav-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .modern-nav-toggle.nav-open span:nth-child(2) {
    opacity: 0;
  }

  .modern-nav-toggle.nav-open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }

  .modern-hero {
    padding: 8rem 0 4rem;
  }

  .modern-hero-content {
    text-align: center;
  }

  .modern-hero-buttons {
    justify-content: center;
  }

  .modern-feature-row, 
  .modern-feature-row.reverse {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .modern-feature-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .modern-feature-row.reverse .modern-feature-title::after {
    left: 50%;
    right: auto;
  }

  .modern-services {
    padding: 80px 0;
  }

  .modern-features {
    padding: 80px 0;
  }

  .modern-feature-row {
    margin-bottom: 5rem;
  }

  .modern-cta {
    padding: 80px 0;
  }
}