:root {
  /* Colors */
  --color-primary: #6366f1;
  --color-secondary: #a855f7;
  --color-accent: #ec4899;
  --color-bg: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-surface: #f8fafc;
  
  /* Gradients */
  --grad-main: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --grad-surface: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(248,250,252,1) 100%);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

section {
  padding: var(--space-lg) 0;
}

/* Typography Helpers */
.text-gradient {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-muted {
  color: var(--color-text-muted);
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--grad-main);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(168, 85, 247, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

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

.nav-logo {
  height: 32px;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

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

/* Hero Section */
.hero {
  padding-top: calc(var(--space-xl) + 2rem);
  padding-bottom: var(--space-xl);
  text-align: center;
  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.05), transparent 40%),
              radial-gradient(circle at top left, rgba(99, 102, 241, 0.05), transparent 40%);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 2rem;
}

.hero p {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--space-lg);
}

.service-card {
  padding: 3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  background: white;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
  border-color: var(--color-primary);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  color: var(--color-primary);
}

.service-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-text-muted);
}

/* Portfolio Section */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.portfolio-item {
  border-radius: 2rem;
  overflow: hidden;
}

.portfolio-image {
  aspect-ratio: 4/3;
  background: #f1f5f9;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: block;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(0.98);
}

.portfolio-info h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #f1f5f9 25%, #f8fafc 25%, #f8fafc 50%, #f1f5f9 50%, #f1f5f9 75%, #f8fafc 75%, #f8fafc 100%);
  background-size: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* CTA Section */
.cta-section {
  background: #0f172a;
  color: white;
  border-radius: 3rem;
  margin: var(--space-xl) 0;
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.2), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.2), transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  padding: 6rem 0 3rem;
  background: var(--color-surface);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.footer-brand p {
  margin: 1.5rem 0;
  max-width: 300px;
}

.footer-links h5 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

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

.footer-links ul li a {
  color: var(--color-text-muted);
}

.footer-links ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Cleanup Classes */
.btn-small {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.portfolio-section {
  background: var(--color-surface);
  padding: var(--space-xl) 0;
}

.portfolio-header-content {
  max-width: 600px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.testimonial-card {
  background: white;
  padding: 4rem;
  border-radius: 2rem;
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-quote-icon {
  font-size: 4rem;
  position: absolute;
  top: 1rem;
  right: 2rem;
  opacity: 0.1;
  font-family: serif;
}

.testimonial-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-title-gradient {
  background: white;
  -webkit-text-fill-color: white;
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.8;
}

.cta-button-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.cta-btn-white {
  background: white;
  color: var(--color-text);
}

.cta-btn-glass {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
