:root {
  --bg-color: #030303;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(16px);
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
  font-family: 'Outfit', sans-serif;
}

/* Background Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
  top: -200px;
  left: -200px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(244, 63, 94, 0) 70%);
  top: 40%;
  right: -100px;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(100px, 50px) scale(1.1);
  }
}

/* Nav */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  padding: 0 5%;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(3, 3, 3, 0.6);
  backdrop-filter: var(--glass-blur);
  z-index: 1000;
  border-bottom: 1px solid var(--card-border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--text-secondary);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  padding-top: var(--nav-height);
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button {
  display: inline-flex;
  background: #ffffff;
  color: #000000;
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgba(255, 255, 255, 0.4);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Projects */
.projects-section {
  padding: 10rem 10%;
}

.section-heading {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 4rem;
  letter-spacing: -1px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

/* Project Cards */
.project-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  cursor: pointer;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(80px);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  z-index: 0;
  pointer-events: none;
}

.project-card:hover .card-glow {
  width: 300px;
  height: 300px;
  opacity: 0.15;
}

.card-content {
  position: relative;
  z-index: 1;
}

.project-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.project-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: gap 0.3s ease, color 0.3s ease;
}

.project-link:hover {
  gap: 1rem;
  color: var(--accent);
}

.project-link svg {
  transition: transform 0.3s ease;
}

/* Footer */
.footer {
  padding: 8rem 10% 4rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.footer-content h2 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 1rem;
}

.footer-content p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.footer-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--card-border);
  text-underline-offset: 8px;
  font-size: 1.25rem;
  font-weight: 500;
  transition: text-decoration-color 0.3s ease, color 0.3s ease;
}

.footer-link:hover {
  text-decoration-color: var(--text-primary);
  color: #a855f7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-heading {
    font-size: 2.5rem;
  }

  .footer-content h2 {
    font-size: 2.5rem;
  }

  .project-card {
    min-height: 400px;
    padding: 2rem;
  }
}