:root {
  --bg-color: #050505;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --card-bg: rgba(20, 20, 20, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --blue-color: #3b82f6;
  --purple-color: #8b5cf6;
}

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

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background Glow Effects */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

.glow-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--blue-color);
  animation: float 20s ease-in-out infinite;
}

.glow-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--purple-color);
  animation: float 25s ease-in-out infinite reverse;
}

.glow-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30vw;
  height: 30vw;
  background: #ec4899;
  animation: float 15s ease-in-out infinite 5s;
  opacity: 0.1;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(5%, 5%) scale(1.05);
  }
  66% {
    transform: translate(-5%, 2%) scale(0.95);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  z-index: 1;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header & Hero */
.hero {
  text-align: center;
  margin-bottom: 5rem;
  animation: fadeDown 1s ease-out forwards;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1.25rem 0.5rem 0.75rem;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
}

.logo h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
}

/* Stagger animations for cards */
.project-card:nth-child(1) {
  animation-delay: 0.2s;
}
.project-card:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hover-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  top: -150px;
  right: -150px;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.blue-glow {
  background: rgba(59, 130, 246, 0.3);
}
.purple-glow {
  background: rgba(139, 92, 246, 0.3);
}

.project-card:hover .hover-glow {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.card-icon.blue {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(59, 130, 246, 0.05)
  );
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.card-icon.purple {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2),
    rgba(139, 92, 246, 0.05)
  );
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.card-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

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

.card-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  margin-top: auto;
}

.domain {
  font-family: monospace;
  font-size: 0.9rem;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.3s;
}

.project-card:hover .domain {
  color: var(--text-primary);
}

.arrow {
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.project-card:hover .arrow {
  transform: translateX(5px);
  color: var(--text-primary);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

/* Responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  .subtitle {
    font-size: 1.1rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }
  .container {
    padding: 3rem 1.5rem;
  }
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .project-card:hover .arrow {
    transform: none;
  }
}
