:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --brand-orange: #ef8634;
  --brand-orange-dark: #d6741f;
  --secondary-color: #64748b;
  --text-color: #1e293b;
  --text-light: #64748b;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.logo span {
  color: var(--brand-orange);
  transition: color 0.3s ease;
}

.logo:hover span {
  color: var(--brand-orange-dark);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0;
  min-height: 80vh;
}

.hero-content h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--primary-color) 50%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-block;
}

.btn-primary {
  background: var(--brand-orange);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(239, 134, 52, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.btn-secondary:hover {
  background: var(--brand-orange);
  color: white;
  transform: translateY(-2px);
}

/* Code Block Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.code-block {
  background: #1a1a1a;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.code-block:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-header {
  background: #2a2a2a;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #333;
}

.dots {
  display: flex;
  gap: 0.5rem;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dots span:nth-child(1) { background: #ff5f57; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #28ca42; }

.code-content {
  padding: 1.5rem;
}

.code-content pre {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.keyword { color: #ff79c6; }
.variable { color: #50fa7b; }
.string { color: #f1fa8c; }
.function { color: #8be9fd; }

/* Services Section */
.services {
  padding: 6rem 0;
  background: var(--bg-light);
  width: 100%;
  position: relative;
}

.services .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

/* Alternative approach using CSS Grid subgrid behavior */
@media (min-width: 900px) and (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid .service-card:nth-child(4) {
    grid-column: 2;
  }
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(239, 134, 52, 0.2);
  border-color: var(--brand-orange);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 6rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

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

.features {
  list-style: none;
}

.features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  font-weight: 500;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 1rem;
}

.stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--text-light);
  font-weight: 500;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--bg-light);
  text-align: center;
  width: 100%;
  position: relative;
}

.contact .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
}

.contact-icon {
  font-size: 1.25rem;
  color: var(--brand-orange);
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 3rem 0;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-links {
    display: none;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    flex-direction: row;
    justify-content: center;
  }
}

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

.service-card,
.stat {
  animation: fadeInUp 0.6s ease-out;
}