/* ============================================================
   COMPUTECH ACADEMY — Main Stylesheet
   Developer: Jigar Prajapati
   ============================================================ */

:root {
  --bg: #0b0d12;
  --bg2: #111520;
  --bg3: #161b28;
  --card: #13192a;
  --card2: #1a2035;
  --border: #1e2a42;
  --border2: #253044;
  --accent: #0a84ff;
  --accent2: #5e5ce6;
  --accent3: #30d158;
  --danger: #ff375f;
  --warning: #ff9f0a;
  --text: #e8eaf0;
  --text2: #8b93a8;
  --text3: #5a6278;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --glow: 0 0 30px rgba(10,132,255,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
textarea { resize: vertical; }
.hidden { display: none !important; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11,13,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(11,13,18,0.98); }

.nav-container {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  height: 64px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px; background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
}
.accent { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2rem; margin-left: 2rem; flex: 1; }
.nav-links a {
  color: var(--text2); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); border-bottom-color: var(--accent); }

.nav-auth { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.nav-user { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; position: relative; }

.btn-outline {
  padding: 8px 20px; border: 1px solid var(--border2); border-radius: 8px;
  color: var(--text2); font-size: 0.875rem; font-weight: 500;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary {
  padding: 8px 20px; background: var(--accent); border-radius: 8px;
  color: #fff; font-size: 0.875rem; font-weight: 600;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: #1a90ff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(10,132,255,0.3); }

.user-avatar {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.user-avatar:hover { border-color: var(--accent); }
.user-avatar img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.user-avatar span { font-size: 0.875rem; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar i { font-size: 10px; color: var(--text3); }

.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 0.5rem; min-width: 200px;
  box-shadow: var(--shadow-lg); display: none; z-index: 999;
}
.dropdown-menu.show { display: block; animation: fadeDown 0.15s ease; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 6px; color: var(--text2);
  font-size: 0.875rem; transition: all 0.15s;
}
.dropdown-menu a:hover { background: var(--border); color: var(--text); }
.dropdown-menu .divider { height: 1px; background: var(--border); margin: 0.4rem 0; }
.logout-link:hover { color: var(--danger) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.hamburger span { width: 22px; height: 2px; background: var(--text2); border-radius: 2px; transition: all 0.3s; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 100vh; padding-top: 64px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-left: 5%; padding-right: 5%;
  gap: 4rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.3;
}
.floating-shapes { position: absolute; inset: 0; overflow: hidden; }
.shape {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.12;
}
.s1 { width: 500px; height: 500px; background: var(--accent); top: -100px; right: -100px; animation: float 8s ease-in-out infinite; }
.s2 { width: 300px; height: 300px; background: var(--accent2); bottom: 10%; left: 5%; animation: float 6s ease-in-out infinite 2s; }
.s3 { width: 200px; height: 200px; background: var(--accent3); top: 40%; left: 40%; animation: float 10s ease-in-out infinite 1s; }

.hero-content {
  position: relative; z-index: 1; flex: 1; max-width: 600px;
  animation: fadeUp 0.8s ease both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10,132,255,0.12); border: 1px solid rgba(10,132,255,0.3);
  color: var(--accent); padding: 6px 14px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800; line-height: 1.05; margin-bottom: 1.25rem;
  letter-spacing: -2px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 60%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text2); max-width: 520px;
  margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--accent); border-radius: var(--radius);
  color: #fff; font-weight: 700; font-size: 1rem;
  transition: all 0.25s; box-shadow: 0 8px 32px rgba(10,132,255,0.3);
}
.btn-hero-primary:hover { background: #1a90ff; transform: translateY(-3px); box-shadow: 0 16px 48px rgba(10,132,255,0.4); }
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border: 1.5px solid var(--border2); border-radius: var(--radius);
  color: var(--text); font-weight: 600; font-size: 1rem;
  transition: all 0.25s;
}
.btn-hero-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-stats { display: flex; align-items: center; gap: 0; }
.stat { text-align: center; padding: 0 2rem 0 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.8rem; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.stat-divider { width: 1px; height: 40px; background: var(--border2); margin-right: 2rem; }

.hero-visual {
  position: relative; z-index: 1; flex: 1; max-width: 500px;
  animation: fadeUp 0.8s ease 0.3s both;
}
.code-window {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow);
}
.code-title-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: var(--bg3); border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.code-filename { margin-left: auto; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text3); }
.code-body { padding: 1.5rem; font-family: var(--font-mono); font-size: 0.85rem; line-height: 2; }
.code-line { white-space: pre; }
.pl { padding-left: 1rem; }
.c-key { color: #ff7b72; }
.c-var { color: #79c0ff; }
.c-op  { color: var(--text3); }
.c-str { color: #7ee787; }
.c-val { color: #a8d1ff; }
.c-fn  { color: #d2a8ff; }
.c-comment { color: #555f7a; font-style: italic; }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.section { padding: 5rem 0; }
.section-dark { background: var(--bg2); }
.section-container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 800px; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block; background: rgba(10,132,255,0.1);
  border: 1px solid rgba(10,132,255,0.25); color: var(--accent);
  padding: 4px 14px; border-radius: 100px; font-size: 0.8rem;
  font-weight: 600; margin-bottom: 1rem; font-family: var(--font-mono);
}
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; margin-bottom: 0.75rem; }
.section-sub { color: var(--text2); font-size: 1rem; max-width: 500px; margin: 0 auto; }
.section-cta { text-align: center; margin-top: 3rem; }

/* ══════════════════════════════════════
   PROJECT CARDS
══════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s; cursor: pointer;
  animation: fadeUp 0.5s ease both;
}
.project-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(10,132,255,0.1);
}
.project-thumb {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--bg3); display: block;
}
.project-thumb-placeholder {
  width: 100%; height: 200px; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text3);
}
.project-card-body { padding: 1.25rem; }
.project-type-badge {
  display: inline-block; padding: 3px 10px;
  background: rgba(10,132,255,0.12); border: 1px solid rgba(10,132,255,0.25);
  color: var(--accent); border-radius: 100px; font-size: 0.7rem;
  font-weight: 600; margin-bottom: 0.75rem; font-family: var(--font-mono);
}
.project-title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.5rem; color: var(--text); line-height: 1.3;
}
.project-desc {
  color: var(--text2); font-size: 0.85rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 1rem;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.tech-tag {
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text3); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem;
  font-family: var(--font-mono);
}
.project-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.project-author { display: flex; align-items: center; gap: 8px; }
.project-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.project-author span { font-size: 0.8rem; color: var(--text2); font-weight: 500; }
.project-meta { display: flex; align-items: center; gap: 12px; }
.project-meta span { font-size: 0.75rem; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.featured-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--warning); color: #000; padding: 3px 8px;
  border-radius: 4px; font-size: 0.7rem; font-weight: 700;
}

.loading-skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
  min-height: 320px;
}

/* ══════════════════════════════════════
   STEPS
══════════════════════════════════════ */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem;
}
.step-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  position: relative; transition: all 0.3s;
}
.step-card:hover { border-color: var(--accent); box-shadow: var(--glow); }
.step-num {
  font-family: var(--font-mono); font-size: 3rem; font-weight: 700;
  color: var(--border2); line-height: 1; margin-bottom: 1rem;
}
.step-icon {
  width: 56px; height: 56px; background: rgba(10,132,255,0.1);
  border: 1px solid rgba(10,132,255,0.25); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.3rem; margin-bottom: 1.25rem;
}
.step-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-card p { color: var(--text2); font-size: 0.9rem; line-height: 1.6; }

/* ══════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════ */
.page-header {
  padding: 6rem 0 3rem; margin-top: 64px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
}
.page-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 0.5rem; }
.page-header p { color: var(--text2); }

/* ══════════════════════════════════════
   FILTERS
══════════════════════════════════════ */
.filters-bar { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 1.25rem 0; position: sticky; top: 64px; z-index: 100; }
.filters-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.search-box {
  flex: 1; min-width: 250px; position: relative;
  display: flex; align-items: center;
}
.search-box i { position: absolute; left: 14px; color: var(--text3); }
.search-box input {
  width: 100%; padding: 10px 14px 10px 40px;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius); color: var(--text);
  transition: border-color 0.2s;
}
.search-box input:focus { outline: none; border-color: var(--accent); }
.filter-controls { display: flex; gap: 0.75rem; }
.filter-select {
  padding: 10px 14px; background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius); color: var(--text); cursor: pointer;
  transition: border-color 0.2s;
}
.filter-select:focus { outline: none; border-color: var(--accent); }

.results-info { color: var(--text2); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius); color: var(--text2); cursor: pointer;
  font-size: 0.875rem; transition: all 0.2s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ══════════════════════════════════════
   PROJECT MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); width: 100%; max-width: 900px;
  max-height: 90vh; overflow-y: auto;
  position: relative; transform: translateY(20px); transition: transform 0.3s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: sticky; top: 1rem; float: right; margin: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 10;
}
.modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.modal-project-img { width: 100%; height: 350px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-project-placeholder { width: 100%; height: 200px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--text3); }
.modal-body { padding: 2rem; }
.modal-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.modal-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }
.modal-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.modal-btn {
  padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--border2);
  background: var(--bg3); color: var(--text2); cursor: pointer;
  font-size: 0.875rem; display: flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.modal-btn:hover { border-color: var(--accent); color: var(--accent); }
.modal-btn.liked { background: rgba(255,55,95,0.1); border-color: var(--danger); color: var(--danger); }
.modal-btn.btn-github { text-decoration: none; }

.modal-info-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.modal-info-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); font-size: 0.8rem; color: var(--text2);
}
.modal-desc { color: var(--text2); line-height: 1.8; margin-bottom: 1.5rem; white-space: pre-wrap; }
.modal-author-row {
  display: flex; align-items: center; gap: 1rem; padding: 1rem;
  background: var(--bg3); border-radius: var(--radius); margin-bottom: 1.5rem;
  cursor: pointer; transition: all 0.2s;
}
.modal-author-row:hover { border: 1px solid var(--accent); }
.modal-author-row img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.modal-author-info h4 { font-weight: 700; font-size: 0.95rem; }
.modal-author-info p { font-size: 0.8rem; color: var(--text2); }

.comments-section { margin-top: 2rem; }
.comments-section h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.comment-form { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.comment-form input {
  flex: 1; padding: 10px 14px; background: var(--bg3);
  border: 1px solid var(--border2); border-radius: var(--radius); color: var(--text);
}
.comment-form input:focus { outline: none; border-color: var(--accent); }
.comment-form button {
  padding: 10px 20px; background: var(--accent); border: none;
  border-radius: var(--radius); color: #fff; cursor: pointer; font-weight: 600;
  transition: background 0.2s;
}
.comment-form button:hover { background: #1a90ff; }
.comment-item { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.comment-item img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.comment-bubble { background: var(--bg3); border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 0.75rem 1rem; flex: 1; }
.comment-author { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.25rem; }
.comment-text { font-size: 0.875rem; color: var(--text2); }
.comment-time { font-size: 0.7rem; color: var(--text3); margin-top: 0.25rem; }

/* ══════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════ */
body.auth-page { background: var(--bg); display: flex; align-items: stretch; min-height: 100vh; padding: 0; }
.auth-container { display: flex; width: 100%; min-height: 100vh; }
.auth-left {
  flex: 1; background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #0a1628 100%);
  padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; min-width: 360px;
}
.auth-left::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(10,132,255,0.15) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(94,92,230,0.1) 0%, transparent 50%);
}
.auth-tagline { position: relative; z-index: 1; }
.auth-tagline h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.auth-tagline p { color: var(--text2); font-size: 1rem; line-height: 1.7; }
.auth-decoration { position: absolute; inset: 0; z-index: 0; }
.deco-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(10,132,255,0.15);
}
.deco-circle.c1 { width: 400px; height: 400px; right: -200px; top: -100px; }
.deco-circle.c2 { width: 250px; height: 250px; right: -80px; bottom: 10%; border-color: rgba(94,92,230,0.15); }
.auth-brand { position: relative; z-index: 1; }

.auth-right {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 2rem; background: var(--bg);
}
.auth-form-wrap { width: 100%; max-width: 480px; }
.form-title { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.form-sub { color: var(--text2); margin-bottom: 2rem; }
.auth-footer-links { text-align: center; margin-top: 1.5rem; color: var(--text2); font-size: 0.9rem; }
.auth-footer-links a { color: var(--accent); font-weight: 600; }
.auth-footer-links a:hover { text-decoration: underline; }
.auth-dev-note { text-align: center; margin-top: 2rem; font-size: 0.75rem; color: var(--text3); font-family: var(--font-mono); }

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text2); margin-bottom: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-icon-wrap { position: relative; display: flex; align-items: center; }
.input-icon-wrap i { position: absolute; left: 12px; color: var(--text3); font-size: 0.9rem; z-index: 1; pointer-events: none; }
.input-icon-wrap input,
.input-icon-wrap select,
.input-icon-wrap textarea {
  width: 100%; padding: 11px 14px 11px 38px;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius); color: var(--text);
  transition: border-color 0.2s; appearance: none;
}
.form-group textarea {
  width: 100%; padding: 11px 14px;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius); color: var(--text); transition: border-color 0.2s;
}
.input-icon-wrap input:focus,
.input-icon-wrap select:focus,
.input-icon-wrap textarea:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.toggle-pw {
  position: absolute; right: 12px; background: none; border: none;
  color: var(--text3); cursor: pointer; font-size: 0.875rem;
}
.toggle-pw:hover { color: var(--text2); }

.btn-form {
  width: 100%; padding: 13px;
  background: var(--accent); border: none; border-radius: var(--radius);
  color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 0.5rem;
}
.btn-form:hover { background: #1a90ff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(10,132,255,0.3); }
.btn-form:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite;
}

.alert {
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 1.25rem;
  font-size: 0.875rem; display: flex; align-items: center; gap: 8px;
}
.alert.success { background: rgba(48,209,88,0.1); border: 1px solid rgba(48,209,88,0.3); color: var(--accent3); }
.alert.error   { background: rgba(255,55,95,0.1);  border: 1px solid rgba(255,55,95,0.3);  color: var(--danger); }
.alert.info    { background: rgba(10,132,255,0.1); border: 1px solid rgba(10,132,255,0.3); color: var(--accent); }

/* ══════════════════════════════════════
   FILE UPLOADS
══════════════════════════════════════ */
.file-drop-zone {
  border: 2px dashed var(--border2); border-radius: var(--radius);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: all 0.2s; color: var(--text2);
}
.file-drop-zone:hover, .file-drop-zone.drag-over {
  border-color: var(--accent); background: rgba(10,132,255,0.05); color: var(--accent);
}
.file-drop-zone p { margin: 0.5rem 0; font-size: 0.9rem; }
.file-drop-zone p span { color: var(--accent); font-weight: 600; }
.file-drop-zone small { font-size: 0.75rem; color: var(--text3); }
.file-preview { position: relative; margin-top: 0.5rem; }
.file-preview img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius); }
.remove-file {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  background: var(--danger); border: none; border-radius: 50%; color: #fff;
  cursor: pointer; font-size: 0.75rem; display: flex; align-items: center; justify-content: center;
}
.file-name { padding: 10px; background: var(--bg3); border-radius: var(--radius); font-size: 0.85rem; color: var(--text2); margin-top: 0.5rem; }

.upload-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  box-shadow: var(--shadow);
}

/* ══════════════════════════════════════
   DASHBOARD
══════════════════════════════════════ */
.dashboard-wrap {
  display: flex; margin-top: 64px; min-height: calc(100vh - 64px);
}
.sidebar {
  width: 260px; background: var(--bg2); border-right: 1px solid var(--border);
  padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 2rem;
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.sidebar-profile { text-align: center; }
.side-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); margin-bottom: 1rem; }
.sidebar-profile h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.side-username { font-size: 0.8rem; color: var(--accent); font-family: var(--font-mono); }
.side-course { font-size: 0.75rem; color: var(--text3); margin-top: 0.25rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--radius); color: var(--text2); font-size: 0.875rem;
  font-weight: 500; transition: all 0.2s;
}
.side-link:hover { background: var(--card); color: var(--text); }
.side-link.active { background: rgba(10,132,255,0.1); color: var(--accent); }
.side-link.logout-link:hover { background: rgba(255,55,95,0.1); color: var(--danger); }
.dashboard-main { flex: 1; padding: 2rem; overflow-y: auto; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.dash-header h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
.dash-stats-row { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.dash-stat {
  flex: 1; min-width: 150px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.dash-stat i { font-size: 1.5rem; color: var(--accent); }
.dash-stat span { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; display: block; }
.dash-stat small { font-size: 0.75rem; color: var(--text3); }
.my-projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.my-project-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s;
}
.my-project-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.my-card-thumb { width: 100%; height: 160px; object-fit: cover; }
.my-card-placeholder { width: 100%; height: 160px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--text3); }
.my-card-body { padding: 1rem; }
.my-card-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.my-card-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--text3); margin-bottom: 0.75rem; }
.my-card-actions { display: flex; gap: 0.5rem; }
.my-card-btn {
  flex: 1; padding: 7px; border-radius: 6px; border: 1px solid var(--border2);
  background: var(--bg3); color: var(--text2); cursor: pointer; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center; gap: 5px; transition: all 0.2s;
}
.my-card-btn:hover { border-color: var(--accent); color: var(--accent); }
.my-card-btn.delete:hover { border-color: var(--danger); color: var(--danger); }

.profile-edit-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.profile-pic-edit { text-align: center; margin-bottom: 2rem; }
.edit-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); margin-bottom: 1rem; }
.change-pic-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius);
  color: var(--text2); font-size: 0.875rem; cursor: pointer; transition: all 0.2s;
}
.change-pic-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════ */
.profile-hero {
  padding: 4rem 0 3rem; margin-top: 64px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
}
.profile-hero-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.profile-big-avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); box-shadow: 0 0 0 4px rgba(10,132,255,0.2); }
.profile-info h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.profile-username { color: var(--accent); font-family: var(--font-mono); }
.profile-course { color: var(--text3); font-size: 0.875rem; }
.profile-bio { color: var(--text2); max-width: 500px; margin: 0.75rem 0; font-size: 0.95rem; line-height: 1.6; }
.profile-links { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.profile-link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  background: var(--card); border: 1px solid var(--border2); border-radius: 8px;
  color: var(--text2); font-size: 0.8rem; transition: all 0.2s;
}
.profile-link-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 4rem 2rem;
  color: var(--text2);
}
.empty-state i { font-size: 3rem; color: var(--text3); margin-bottom: 1rem; display: block; }
.empty-state p { margin-bottom: 1.5rem; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer { background: var(--bg2); border-top: 1px solid var(--border); }
.footer-container {
  max-width: 1300px; margin: 0 auto; padding: 3rem 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.footer-logo i { color: var(--accent); }
.footer-brand p { color: var(--text2); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-dev { font-size: 0.8rem; color: var(--text3); }
.footer-links h4 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.footer-links a { display: block; color: var(--text2); font-size: 0.875rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding: 1.5rem 2rem; border-top: 1px solid var(--border); color: var(--text3); font-size: 0.8rem; }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
@keyframes float    { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-20px); } }
@keyframes shimmer  { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }
@keyframes spin     { to { transform:rotate(360deg); } }

/* ══════════════════════════════════════
   BTN-LG
══════════════════════════════════════ */
.btn-lg { padding: 13px 32px; font-size: 1rem; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-content { max-width: 100%; }
  .hero-visual { max-width: 500px; width: 100%; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 64px; left: 0; right: 0; background: var(--bg2);
    border-bottom: 1px solid var(--border); padding: 1rem 2rem;
    gap: 0.5rem; z-index: 999;
  }
  .hamburger { display: flex; }
  .nav-auth .btn-primary, .nav-auth .btn-outline { display: none; }
  .auth-container { flex-direction: column; }
  .auth-left { min-width: unset; min-height: 180px; }
  .auth-left .auth-tagline { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .dashboard-wrap { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; top: 0; flex-direction: row; flex-wrap: wrap; padding: 1rem; }
  .sidebar-profile { display: flex; align-items: center; gap: 1rem; text-align: left; width: 100%; }
  .side-avatar { width: 50px; height: 50px; margin-bottom: 0; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .side-link { padding: 8px 12px; font-size: 0.8rem; }
  .hero-title { letter-spacing: -1px; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .my-projects-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .dash-stats-row { flex-direction: column; }
  .hero { padding-left: 1rem; padding-right: 1rem; }
}
