* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

:root {
  --bg-color: #ffffff;
  --card-bg: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #0284c7;
  --border: #e2e8f0;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

.nav-link a.active {
  color: var(--primary) !important;
  font-weight: 700;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

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

.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background-color: #eff6ff;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid #dbeafe;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--card-bg);
}

.slider-section {
  padding: 20px 0 80px;
}

.slider-container {
  width: 100%;
  max-width: 900px;
  height: 450px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  position: relative;
}

.slider-wrapper {
  display: flex;
  width: 400%;
  height: 100%;
  animation: slideAnimation 16s infinite ease-in-out;
}

.slider-wrapper.paused {
  animation-play-state: paused !important;
}

.slide {
  width: 25%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.8));
  color: #fff;
  padding: 30px 24px 20px;
  font-size: 1.1rem;
  font-weight: 500;
}

@keyframes slideAnimation {
  0%, 20% {
    transform: translateX(0);
  }
  25%, 45% {
    transform: translateX(-25%);
  }
  50%, 70% {
    transform: translateX(-50%);
  }
  75%, 95% {
    transform: translateX(-75%);
  }
  100% {
    transform: translateX(0);
  }
}

.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: #eff6ff;
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background-color: #fff;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
}

.project-img {
  width: 100%;
  height: 180px;
  background-color: #e2e8f0;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.project-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.project-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 1rem;
  padding-bottom: 1rem;
}

.footer-text {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links, .footer-contact {
  list-style: none;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-contact li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

.footer-logo span {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .slider-container {
    height: 280px;
  }
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}