:root {
  --primary-color: #4F46E5;
  --secondary-color: #6366F1;
  --text-color: #1F2937;
  --background-color: #F9FAFB;
  --card-background: #FFFFFF;
  --font-family: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 10%;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 5rem 10%;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.btn {
  background: white;
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn:hover {
  background: #EFEEFE;
}

/* Sections */
.section {
  padding: 4rem 10%;
  max-width: 800px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Contact */
.social-links {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 10%;
  background: #F3F4F6;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #6B7280;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsive Nav */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}