* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #fafafa;
  color: #1a1a1a;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background gradient animation */
.background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background: linear-gradient(270deg, #8b5cf6, #a855f7, #c084fc);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 0;
  animation: slideDown 0.8s ease-out;
}

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

.logo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  color: #1a1a1a;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-link {
  color: rgb(100, 116, 139);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #8b5cf6;
}

/* Main content */
main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 2rem;
  background: white;
}

.hero {
  max-width: 800px;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.logo-main {
  width: 80px;
  height: 80px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: #6b7280;
  font-weight: 500;
  margin: 1.5rem 0 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.5rem 0;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.2s ease;
}

.tech-badge:nth-child(even) {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.2);
}

.tech-badge:nth-child(3n) {
  background: rgba(192, 132, 252, 0.1);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.2);
}

.cta-section {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #7c3aed !important;
  background-color: #7c3aed !important;
  color: white !important;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.cta-button:hover {
  background: #6d28d9 !important;
  background-color: #6d28d9 !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* Experience section */
.experience {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.experience h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 2rem;
  text-align: center;
  color: #1a1a1a;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #7c3aed;
  display: block;
}

.stat-label {
  color: #6b7280;
  font-weight: 500;
  margin-top: 0.25rem;
}

.recent-projects {
  margin-top: 2.5rem;
}

.recent-projects h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: #1a1a1a;
  text-align: center;
}

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

.project-card {
  padding: 1.5rem;
  background: linear-gradient(to right, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.4));
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(196, 181, 253, 0.6);
  background: linear-gradient(to right, rgba(250, 245, 255, 0.8), rgba(253, 244, 255, 0.4));
}

.project-name {
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}

.project-description {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(124, 58, 237, 0.15);
  color: #6d28d9;
  border-radius: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  color: #4b5563;
  font-size: 0.875rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: white;
}

footer .footer-company {
  color: rgb(71, 85, 105);
  font-weight: 500;
}

footer .footer-contact {
  color: rgb(100, 116, 139);
}

footer .footer-contact a {
  color: #6d28d9;
  font-weight: 500;
  text-decoration: none;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Logo animations */
.logo-main path {
  opacity: 0;
  animation: logoFadeIn 0.8s ease-out forwards;
}

.logo-main .logo-p1 {
  animation-delay: 0.2s;
}

.logo-main .logo-p2 {
  animation-delay: 0.4s;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
  }

  main {
    padding: 5rem 1rem 1rem;
  }

  .hero-logo {
    margin-bottom: 2rem;
  }

  .logo-main {
    width: 60px;
    height: 60px;
  }

  .tech-stack {
    gap: 0.5rem;
  }

  .tech-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .cta-section {
    margin-top: 2rem;
  }

  .experience {
    margin-top: 2rem;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.25rem;
    letter-spacing: 0.12em;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
