:root {
  --color-primary: #6366f1;
  --color-secondary: #f43f5e;
  --color-dark: #1e293b;
  --color-light: #f8fafc;
  --color-gray: #64748b;
  --font-main: 'Poppins', sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--color-dark);
  overflow-x: hidden;
}
/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-light);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}
.hero p {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s 0.2s forwards;
}
.shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
}
.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  right: -50px;
}
/* Navigation */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: 0.3s;
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.nav-wrapper.scrolled {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--color-light);
}
.nav-container a {
  color: inherit;
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-wrapper.scrolled .nav-logo {
  color: var(--color-dark);
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-link {
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}
.nav-wrapper.scrolled .nav-link {
  color: var(--color-dark);
}
.nav-link:hover {
  color: var(--color-secondary);
}
/* Sections */
section {
  padding: 100px 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Services Section */
.services {
  background: var(--color-light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: 0.3s;
  opacity: 0;
  transform: translateY(30px);
}
.service-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary);
}
/* Portfolio Section */
.portfolio {
  background: white;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}
/* Contact Section */
.contact {
  background: var(--color-light);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}
.contact-info {
  display: grid;
  gap: 30px;
}
.contact-item {
  display: flex;
  gap: 20px;
  align-items: center;
}
.contact-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
}
/* Footer */
footer {
  background: var(--color-dark);
  color: var(--color-light);
  padding: 50px 0;
  text-align: center;
}
/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.progress-bar {
  height: 100%;
  background: var(--color-primary);
  width: 0;
  transition: width 0.1s;
}
/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
  z-index: 99;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  section {
    padding: 60px 0;
  }
}