:root {
  --primary: #60a5fa; /* light blue (blue-400) */
  --primary-700: #6d28d9; /* dark purple (violet-700) */
  --primary-800: #4c1d95; /* darker purple (violet-900) */
  --accent: #7dd3fc; /* sky-300 */
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(253, 224, 71, 0.7); /* yellow-300 */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --text-dark: #0b1220;
  --text-light: #e6f0ff;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(125, 211, 252, 0.25), transparent 60%),
    radial-gradient(1000px 600px at -10% 20%, rgba(109, 40, 217, 0.35), transparent 60%),
    linear-gradient(180deg, var(--primary-800), #0b1220 70%);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(
    180deg,
    rgba(13, 22, 45, 0.6),
    rgba(13, 22, 45, 0.3)
  );
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}
.nav-links a:hover {
  background: var(--surface);
  color: #fff;
  transform: translateY(-1px);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(13, 22, 45, 0.95),
      rgba(13, 22, 45, 0.9)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
    border-radius: 0;
  }
}

.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.hero p {
  color: rgba(230, 240, 255, 0.85);
  max-width: 700px;
  margin: 0.5rem auto 1.5rem;
}

.links a {
  margin: 0 0.5rem;
  color: var(--text-light);
  text-decoration: none;
  background: linear-gradient(180deg, var(--primary), var(--primary-700));
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.links a:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--primary-700), var(--primary-800));
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.35);
}

.about,
.projects,
.contact {
  padding: 2rem;
  background: var(--surface);
  margin: 1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.project {
  background: var(--surface-strong);
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

footer {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(13, 22, 45, 0.3), rgba(13, 22, 45, 0.6));
  border-top: 1px solid var(--border);
}

textarea {
  width: 100%;
  height: 120px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  resize: vertical;
  box-sizing: border-box;
}

textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

button {
  padding: 0.7rem 1.1rem;
  background: linear-gradient(180deg, var(--primary), var(--primary-700));
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--primary-700), var(--primary-800));
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.35);
}

/* Certificate Cards */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.certificate-card {
  background: var(--surface-strong);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
  position: relative;
}

.certificate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.cert-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.certificate-card h3 {
  margin: 0.5rem 0;
  color: var(--text-light);
}

.certificate-card p {
  margin: 0.5rem 0;
  color: rgba(230, 240, 255, 0.8);
  font-size: 0.9rem;
}

.cert-status {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #10b981;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Success Message Styling */
#status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

#status.success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

@media (prefers-color-scheme: light) {
  body {
    background: linear-gradient(180deg, #fafcff, #e8f1ff 60%);
    color: #0b1220;
  }
  .navbar,
  footer {
    background: rgba(255, 255, 255, 0.8);
    color: #0b1220;
    border-color: rgba(253, 224, 71, 0.6);
  }
  .nav-links a {
    color: #0b1220;
  }
  .about,
  .projects,
  .contact {
    background: #ffffffcf;
    border-color: rgba(253, 224, 71, 0.6);
  }
  .project {
    background: #ffffffee;
  }
  
  .hamburger span {
    background: var(--text-dark);
  }
  
  .nav-links {
    background: rgba(255, 255, 255, 0.95);
  }
  
  .certificate-card {
    background: #ffffffee;
  }
  
  .certificate-card h3 {
    color: var(--text-dark);
  }
  
  .certificate-card p {
    color: rgba(11, 18, 32, 0.8);
  }
  
  #status.success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
  }
  
  textarea::placeholder {
    color: rgba(11, 18, 32, 0.6);
  }
}
