/* Design Tokens */
:root {
  --bg: #07111f;
  --bg2: #0f172a;
  --bg3: #0d1b2a;
  --surface: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #06b6d4;
  --accent2: #7c3aed;
  --gold: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --max: 1150px;
  --radius: 1rem;
  --radius-sm: 0.6rem;
  --radius-lg: 1.4rem;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --trans: 0.3s ease;
  --grad: linear-gradient(45deg, var(--accent), var(--accent2), var(--gold));
  --grad-h: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: "Inter", Arial, sans-serif;
  background: radial-gradient(circle at top right, var(--bg2), var(--bg));
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: var(--text);
  transition: color var(--trans);
}
a:hover {
  color: var(--accent);
}
ul {
  list-style: none;
}
button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Helpers  */
.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}
.section {
  padding: 5rem 0;
}
.grid {
  display: grid;
  gap: 1.2rem;
}
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.text-center {
  text-align: center;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.gap-1 {
  gap: 0.5rem;
}
.gap-2 {
  gap: 1rem;
}
/* Typography */
h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1.8rem;
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
p {
  color: var(--muted);
  line-height: 1.75;
}
.eyebrow {
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.brand span {
  color: var(--accent);
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #001;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--trans);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
}
.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-socials a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--trans);
}
.nav-socials a:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.nav-auth {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 0.3rem;
}
#menuBtn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--grad);
  color: #001 !important;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.2);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.35);
}
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}
.btn-ghost {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.875rem;
  background: transparent;
  cursor: pointer;
  transition: all var(--trans);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}
.btn-danger {
  background: var(--danger) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.35);
}
.btn-success {
  background: var(--success) !important;
  color: #fff !important;
}

/* Cards */
.card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--trans);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.form-group label.required::after {
  content: " *";
  color: var(--danger);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background: rgba(8, 16, 28, 0.8);
  color: var(--text);
  transition:
    border-color var(--trans),
    box-shadow var(--trans);
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}
input[type="file"] {
  cursor: pointer;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
textarea {
  resize: vertical;
  min-height: 130px;
}
.field-error {
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 0.3rem;
  display: none;
}
.field-error.show {
  display: block;
}
.input-hint {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.3rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Alerts & Notices */
.alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}
.alert-info {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #67e8f9;
}

/* Badges & Tags */
.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-accent {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent);
}
.badge-purple {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}
.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
}
.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.badge-admin {
  background: var(--grad);
  color: #001;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 62px);
  display: grid;
  align-items: center;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  padding: 4rem 0;
}
.hero-text h1 {
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.orb {
  height: 360px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--accent2),
    var(--gold),
    var(--accent)
  );
  filter: blur(28px);
  opacity: 0.85;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-24px);
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: center;
}
.about-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.about-avatar-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 900;
  color: #001;
  box-shadow: var(--shadow-lg);
}
.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Projects / Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.3rem;
}
.project-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 182, 212, 0.25);
}
.project-card h3 {
  color: var(--text);
}
.project-card p {
  flex: 1;
  font-size: 0.9rem;
}
.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.6rem;
}
/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.skill-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--trans);
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
}
.skill-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.skill-card h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
/* Contact Form */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-form-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-form-card h3 {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

/* Gallery */
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--trans);
  cursor: pointer;
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 182, 212, 0.3);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-caption {
  padding: 0.85rem 1rem;
}
.gallery-caption p {
  font-size: 0.85rem;
  color: var(--muted);
}
.gallery-caption h4 {
  color: var(--text);
  font-size: 0.95rem;
}
.gallery-upload-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.gallery-upload-panel h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1rem;
}
/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
}
.lightbox-content img {
  width: 100%;
  border-radius: var(--radius-lg);
}
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-caption {
  text-align: center;
  margin-top: 1rem;
  color: var(--muted);
}

/* Upload Form */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--trans);
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.05);
}
.upload-zone p {
  color: var(--muted);
  font-size: 0.875rem;
}
.upload-zone .upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}
.file-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}
.file-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.8rem;
  display: none;
}
.progress-fill {
  height: 100%;
  background: var(--grad-h);
  border-radius: 3px;
  width: 0;
  transition: width 0.3s;
}

/* Auth Pages */
.auth-page {
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.auth-card h2 {
  color: var(--text);
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
}
.auth-card .sub {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}
.auth-footer a {
  color: var(--accent);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.auth-logo .brand-logo {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
}
.auth-logo span {
  font-size: 1.2rem;
  font-weight: 800;
}
.auth-logo span em {
  color: var(--accent);
  font-style: normal;
}

/* Dashboard */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 62px);
}
.sidebar {
  background: rgba(8, 16, 28, 0.8);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--trans);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--accent);
  background: rgba(6, 182, 212, 0.07);
  border-left-color: var(--accent);
}
.sidebar-section-title {
  padding: 0.5rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1rem;
}
.dashboard-content {
  padding: 2rem;
  overflow-y: auto;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.page-subtitle {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* Stats Cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-card-icon.cyan {
  background: rgba(6, 182, 212, 0.15);
}
.stat-card-icon.purple {
  background: rgba(124, 58, 237, 0.15);
}
.stat-card-icon.gold {
  background: rgba(245, 158, 11, 0.15);
}
.stat-card-icon.green {
  background: rgba(16, 185, 129, 0.15);
}
.stat-card-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-card-info p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* Tables */
.table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.85rem 1.2rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 0.85rem 1.2rem;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}
.user-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.user-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #001;
  flex-shrink: 0;
}

/* User Profile */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}
.profile-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #001;
  flex-shrink: 0;
}

/* Tutorials */
.tutorial-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.tutorial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.25);
}
.tutorial-thumb {
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.2),
    rgba(124, 58, 237, 0.2)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
.tutorial-card h3 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
}
.tutorial-card p {
  font-size: 0.875rem;
  flex: 1;
}
.tutorial-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.tutorial-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(8, 16, 28, 0.6);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.6rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  padding: 0.2rem 0;
  transition: color var(--trans);
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-socials {
  display: flex;
  gap: 0.5rem;
}
.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--trans);
}
.footer-socials a:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* Misc */
.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}
.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 2rem auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.tooltip {
  position: relative;
}
.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #1e293b;
  color: var(--text);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}
.tooltip:hover::after {
  opacity: 1;
}

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.active {
  display: flex;
}
.modal-box {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-box h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}
.modal-box p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.modal-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

/* Welcome / Name Form Page */
.welcome-page {
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.welcome-card {
  width: 100%;
  max-width: 520px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.welcome-result {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  display: none;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}
.welcome-result.show {
  display: block;
}
.welcome-result.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.welcome-result.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 0 1rem;
  }
  .sidebar-nav a {
    padding: 0.5rem 0.8rem;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .sidebar-nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }
}
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 0;
  }
  .orb {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .nav-socials,
  .nav-divider {
    display: none;
  }
  #menuBtn {
    display: block;
  }
  .nav-links,
  .nav-auth {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: #07111f;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 0.4rem;
  }
  .nav-links.show,
  .nav-auth.show {
    display: flex;
  }
  .nav-wrapper {
    position: relative;
  }
}
@media (max-width: 540px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .auth-card {
    padding: 1.8rem;
  }
  .section {
    padding: 3.5rem 0;
  }
}
@media (max-width: 380px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

/* Blink cursor */
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

/* Skill bar */
.skill-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: 0; /* JS animates this from footer.php */
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
  transition: width 1s ease;
}

/* CTA Banner */
.cta-banner {
  padding: 3rem;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.08),
    rgba(124, 58, 237, 0.08)
  );
  text-align: center;
}
.cta-banner h2 {
  margin-bottom: 0.6rem;
}
.cta-banner p {
  margin-bottom: 2rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* Block button modifier */
.btn--block {
  width: 100%;
  display: block;
  text-align: center;
  padding: 0.9rem;
}

/* Skill card paragraph size */
.skill-card p {
  font-size: 0.875rem;
}

/* Visitor Counter */
.footer-visitor-counter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.04);
  transition:
    border-color var(--trans),
    color var(--trans);
  user-select: none;
}
.footer-visitor-counter:hover {
  border-color: rgba(6, 182, 212, 0.35);
  color: var(--text);
}
.visitor-icon {
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.85;
}
.visitor-label {
  letter-spacing: 0.04em;
  font-weight: 500;
}
.visitor-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
  min-width: 2ch;
}
/* Loading skeleton pulse */
.visitor-skeleton {
  display: inline-block;
  width: 3rem;
  height: 0.9em;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--border) 25%,
    rgba(6, 182, 212, 0.12) 50%,
    var(--border) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  vertical-align: middle;
}
@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* Responsive: stack counter below copyright on very narrow screens */
@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Remark textarea */
.remark-textarea {
  width: 100%;
  min-width: 220px;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  resize: vertical;
  transition:
    border-color var(--trans),
    box-shadow var(--trans);
  line-height: 1.5;
}
.remark-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}
.remark-textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

/* Character counter */
.remark-char-counter {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0.25rem;
  transition: color var(--trans);
}

/* Remarks table row hover */
.remarks-table tbody tr.remarks-row:hover {
  background: rgba(6, 182, 212, 0.04);
}

/* Submit bar at bottom of form */
.remarks-submit-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.remarks-hint {
  flex: 1;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.remarks-hint strong {
  color: var(--text);
}

/* Results page — filled / empty row coloring */
.remarks-result-row.row-filled {
  border-left: 3px solid var(--success);
}
.remarks-result-row.row-empty {
  border-left: 3px solid transparent;
  opacity: 0.75;
}

/* Remark display text */
.remark-text {
  color: var(--text) !important;
  white-space: pre-wrap;
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}
.remark-empty-label {
  color: var(--muted);
  font-style: italic;
  font-size: 0.875rem;
}

/* Sidebar active state for the new nav entry */
.sidebar-nav a.active {
  color: var(--accent);
  background: rgba(6, 182, 212, 0.08);
  border-radius: var(--radius-sm);
}

/* Responsive: collapse to cards on small screens */
@media (max-width: 700px) {
  .remarks-table-wrap table,
  .remarks-results-wrap table {
    display: block;
  }
  .remarks-table-wrap thead,
  .remarks-results-wrap thead {
    display: none;
  }
  .remarks-table-wrap tbody tr,
  .remarks-results-wrap tbody tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
  }
  .remarks-table-wrap td,
  .remarks-results-wrap td {
    display: block;
    border: none !important;
    padding: 0.3rem 0 !important;
  }
  .remarks-submit-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .remarks-submit-bar .btn-ghost,
  .remarks-submit-bar .btn {
    text-align: center;
  }
}

/* Divider between local form and OAuth button */
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Google branded sign-in button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background var(--trans),
    box-shadow var(--trans),
    border-color var(--trans);
  text-decoration: none;
  margin-bottom: 0.25rem;
}
.btn-google:hover {
  background: #f8f9fa;
  border-color: #c6c6c6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #1a1a1a;
}
.btn-google:active {
  background: #f1f3f4;
  box-shadow: none;
}
.btn-google:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-google__icon {
  flex-shrink: 0;
}

/* Alert helpers (success / error, used on auth pages) */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

/* User avatar in navbar (Google profile picture) */
.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  vertical-align: middle;
  margin-right: 0.3rem;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .btn-google {
    font-size: 0.85rem;
    padding: 0.7rem 0.75rem;
    gap: 0.55rem;
  }
}
