/* ============================================================
   PORTFOLIO 2 — Design System
   Theme: Green + White | Glassmorphism | Mitr Font
   ============================================================ */

/* ---- CSS Variables ---------------------------------------- */
:root {
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;

  --glass-bg:      rgba(255, 255, 255, 0.22);
  --glass-bg-lg:   rgba(255, 255, 255, 0.30);
  --glass-border:  rgba(255, 255, 255, 0.45);
  --glass-shadow:  0 8px 32px rgba(34, 197, 94, 0.08);
  --glass-shadow-lg: 0 20px 60px rgba(34, 197, 94, 0.12);

  --blur: 16px;
  --blur-lg: 24px;
}

/* ---- Base ------------------------------------------------- */
* { box-sizing: border-box; }

body {
  font-family: 'Mitr', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- Gradient Background ---------------------------------- */
.bg-gradient-main {
  background: linear-gradient(
    135deg,
    #edfbf2 0%,
    #f5fdf8 30%,
    #f0fdf4 60%,
    #e8f9ef 100%
  );
  min-height: 100vh;
}

/* ---- Ambient Blobs ---------------------------------------- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
  z-index: 0;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #86efac, #4ade80);
  top: -150px; left: -150px;
  animation-delay: 0s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a7f3d0, #6ee7b7);
  bottom: -100px; right: -100px;
  animation-delay: -4s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #bbf7d0, #86efac);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.05); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}

/* ---- Glassmorphism Cards ---------------------------------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.glass-card-lg {
  background: var(--glass-bg-lg);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg);
}
.glass-tag {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
}
.glass-btn {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.glass-stat {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---- Navbar ----------------------------------------------- */
#navbar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.06);
}

.nav-link {
  color: #4b5563;
  font-weight: 400;
}
.nav-link:hover {
  color: var(--green-600);
  background: rgba(34, 197, 94, 0.08);
}
.nav-link-active {
  color: var(--green-600) !important;
  background: rgba(34, 197, 94, 0.12) !important;
  font-weight: 500;
}
.mobile-nav-link {
  color: #4b5563;
  display: block;
}
.mobile-nav-link:hover {
  color: var(--green-600);
  background: rgba(34, 197, 94, 0.08);
}

/* Hamburger lines */
.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-600);
  transition: all 0.3s ease;
}
#menu-btn.open .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#menu-btn.open .hamburger-line:nth-child(2) { opacity: 0; }
#menu-btn.open .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Buttons ---------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.5rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Mitr', sans-serif;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.5rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--green-600);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Mitr', sans-serif;
  border: 1.5px solid var(--green-300);
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--green-500);
  transform: translateY(-2px);
}

.btn-sm-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 1rem;
  border-radius: 0.625rem;
  background: var(--green-500);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Mitr', sans-serif;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-sm-primary:hover { background: var(--green-600); }

.btn-sm-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 1rem;
  border-radius: 0.625rem;
  background: transparent;
  color: var(--green-600);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Mitr', sans-serif;
  border: 1px solid var(--green-300);
  transition: all 0.2s;
  text-decoration: none;
}
.btn-sm-outline:hover { border-color: var(--green-500); background: rgba(34,197,94,0.05); }

/* ---- Typography ------------------------------------------- */
.text-gradient {
  background: linear-gradient(135deg, #15803d, #14532d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #1a2e1a;
  line-height: 1.2;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a2e1a;
}

/* ---- Skill / Status Tags ---------------------------------- */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.skill-tag-sm {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  color: var(--green-600);
  font-size: 0.7rem;
  font-weight: 400;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.status-tag-done {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green-600);
  font-size: 0.7rem;
  font-weight: 500;
}
.status-tag-wip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 500;
}
.status-tag-coming {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(156, 163, 175, 0.12);
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 500;
}

/* ---- Form ------------------------------------------------- */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.4rem;
  font-family: 'Mitr', sans-serif;
}
.form-input {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #374151;
  font-size: 0.875rem;
  font-family: 'Mitr', sans-serif;
  font-weight: 300;
  transition: all 0.2s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--green-400);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.form-input::placeholder { color: #9ca3af; }

/* ---- Social Buttons --------------------------------------- */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--green-600);
  font-size: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  color: var(--green-700);
}

/* ---- Animations ------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadein {
  animation: fadeIn 0.6s ease forwards;
}
.animate-fadein-delay {
  animation: fadeIn 0.6s ease 0.15s forwards;
  opacity: 0;
}

/* ---- Scroll reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Avatar ---------------------------------------------- */
.avatar-ring {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25), 0 8px 24px rgba(34, 197, 94, 0.18);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.avatar-ring:hover {
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4), 0 12px 32px rgba(34, 197, 94, 0.25);
  transform: scale(1.04);
}

/* ---- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .animate-fadein, .animate-fadein-delay { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
