:root {
  --primary: #0a0e27;
  --secondary: #ff6b35;
  --accent: #00d9ff;
  --text: #e8e9ed;
  --text-muted: #9ba3b4;
  --bg-dark: #050814;
  --bg-card: #131825;
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 107, 53, 0.06) 0%, transparent 50%);
  animation: rotate 60s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 0;
  background: rgba(5, 8, 20, 0.8);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(232, 233, 237, 0.1);
}

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

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

/* Page */
.projects-page {
  padding: 10rem 0 6rem;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-header h1 {
  font-family: "Fraunces", serif;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.page-header h1 span {
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  max-width: 750px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(232, 233, 237, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.project-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
  font-weight: 600;
}

.project-status {
  background: rgba(40, 202, 66, 0.2);
  color: #28ca42;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(40, 202, 66, 0.3);
  white-space: nowrap;
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Tech Tags */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.7rem;
}

.tech-tag {
  background: rgba(102, 126, 234, 0.1);
  color: #8ea2ff;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Buttons */
.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-project {
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #667eea);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(232, 233, 237, 0.3);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(0, 217, 255, 0.1);
}

.back-home {
  text-align: center;
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 3rem;
  }

  nav ul {
    gap: 1.3rem;
  }
}

@media (max-width: 640px) {
  nav ul {
    display: none;
  }

  .projects-page {
    padding-top: 8rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .project-card {
    padding: 1.7rem;
  }

  .project-header {
    flex-direction: column;
  }

  .btn-project {
    width: 100%;
    text-align: center;
  }
}