/* ============================================================
   NOX HUNT - CYBERSECURITY PORTFOLIO
   Dark Cyber Theme | Glassmorphism | Responsive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   RESET & VARIABLES
   ============================================================ */

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

:root {
  --bg: #0c0e14;
  --bg-surface: #11141c;
  --bg-card: #171b26;
  --bg-card-hover: #1c2030;
  --border: #252a38;
  --border-light: #2e3345;

  --red: #FF3B4E;
  --orange: #FF6B35;
  --amber: #FF8A3D;
  --gradient: linear-gradient(135deg, #FF3B4E 0%, #FF6B35 50%, #FF8A3D 100%);
  --gradient-subtle: linear-gradient(135deg, #FF3B4E 0%, #FF6B35 100%);

  --text: #e8e8ec;
  --text-secondary: #9ba1b5;
  --text-muted: #5c6278;

  --green: #10b981;
  --blue: #3b82f6;
  --yellow: #f59e0b;

  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(255, 59, 78, 0.15);
  --shadow-glow-lg: 0 0 60px rgba(255, 59, 78, 0.1);

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1200px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 59, 78, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: rgba(255, 59, 78, 0.3);
  color: #fff;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--amber); }

img { max-width: 100%; height: auto; display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 12px;
  max-width: 600px;
}

/* ============================================================
   GLASSMORPHISM CARDS
   ============================================================ */

.glass {
  background: rgba(23, 27, 38, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.glass:hover {
  border-color: rgba(255, 59, 78, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.glass-static {
  background: rgba(23, 27, 38, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 59, 78, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 59, 78, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid rgba(255, 59, 78, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 59, 78, 0.1);
  border-color: var(--red);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: rgba(16, 185, 129, 0.25);
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(12, 14, 20, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-slow);
  z-index: 1001;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  font-size: 1.1rem;
  padding: 12px 32px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: var(--transition);
  width: 200px;
  text-align: center;
}

.mobile-menu a:hover {
  color: var(--text);
  background: var(--bg-card);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-bg .orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(255, 59, 78, 0.06);
  top: 10%;
  right: 10%;
}

.hero-bg .orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(255, 107, 53, 0.05);
  bottom: 10%;
  left: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-terminal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-terminal .prompt {
  color: var(--red);
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-name .nox {
  color: var(--text);
}

.hero-name .hunt {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-roles {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 32px;
}

.hero-roles .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--red);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-desc .hl {
  color: var(--red);
  font-weight: 600;
}

.hero-desc .hl2 {
  color: var(--orange);
  font-weight: 600;
}

.hero-desc .hl3 {
  color: var(--amber);
  font-weight: 600;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 59, 78, 0.3), transparent);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text .hl { color: var(--red); font-weight: 600; }
.about-text .hl2 { color: var(--orange); font-weight: 600; }
.about-text .hl3 { color: var(--amber); font-weight: 600; }

.about-card {
  padding: 32px;
}

.about-card-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-card-header .green { color: var(--green); }

.about-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.about-info-row:last-child { border-bottom: none; }

.about-info-row .icon {
  color: var(--red);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.about-info-row .label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.about-info-row .value {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  padding: 32px;
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.skill-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.skill-card-icon.prog {
  background: rgba(255, 59, 78, 0.1);
  color: var(--red);
}

.skill-card-icon.net {
  background: rgba(255, 107, 53, 0.1);
  color: var(--orange);
}

.skill-card-icon.sec {
  background: rgba(255, 138, 61, 0.1);
  color: var(--amber);
}

.skill-card-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.skill-item:last-child { border-bottom: none; }

.skill-item-name {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-item-bar {
  width: 80px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.skill-item-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 1s ease-out;
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card-image {
  height: 200px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-image .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.project-card-image .placeholder-icon {
  font-size: 2rem;
  opacity: 0.3;
}

.project-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 59, 78, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 59, 78, 0.15);
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.project-links a:hover {
  color: var(--text);
}

/* ============================================================
   TIMELINE SECTION
   ============================================================ */

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-col {
  padding: 32px;
}

.timeline-col-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.timeline-col-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
}

.timeline-col-icon.current {
  background: rgba(255, 59, 78, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 59, 78, 0.2);
}

.timeline-col-icon.future {
  background: rgba(255, 107, 53, 0.1);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.timeline-col-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.timeline-item.done {
  background: rgba(255, 59, 78, 0.05);
  border: 1px solid rgba(255, 59, 78, 0.1);
}

.timeline-item.pending {
  background: rgba(255, 107, 53, 0.03);
  border: 1px solid rgba(255, 107, 53, 0.08);
  opacity: 0.7;
}

.timeline-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.timeline-check.done {
  background: rgba(255, 59, 78, 0.15);
  color: var(--red);
}

.timeline-check.pending {
  background: rgba(255, 107, 53, 0.1);
  color: var(--orange);
}

.timeline-item-text {
  font-size: 0.95rem;
  font-weight: 500;
}

.timeline-item.done .timeline-item-text { color: var(--text); }
.timeline-item.pending .timeline-item-text { color: var(--text-muted); }

/* ============================================================
   BLOG SECTION
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  padding: 32px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.blog-card-meta svg {
  width: 14px;
  height: 14px;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.blog-card-title:hover {
  color: var(--red);
}

.blog-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 107, 53, 0.1);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 53, 0.15);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.contact-link-card:hover {
  border-color: rgba(255, 59, 78, 0.3);
  transform: translateY(-2px);
}

.contact-link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link-icon.github { background: rgba(255, 59, 78, 0.1); color: var(--red); }
.contact-link-icon.email { background: rgba(255, 107, 53, 0.1); color: var(--orange); }
.contact-link-icon.discord { background: rgba(255, 138, 61, 0.1); color: var(--amber); }

.contact-link-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-link-value {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand .gradient-text {
  font-weight: 700;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   LOADING STATES
   ============================================================ */

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-text {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
  font-size: 0.9rem;
}

.error-text {
  color: var(--red);
  text-align: center;
  padding: 40px;
  font-size: 0.9rem;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 59, 78, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto 24px;
}

.login-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.login-form .btn-primary {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
}

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: none;
}

.login-error.show {
  display: block;
}

.login-footer {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--orange);
}

/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}

.sidebar-logo-text {
  font-weight: 700;
  font-size: 0.95rem;
}

.sidebar-logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 4px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.sidebar-nav-item:hover {
  background: var(--bg-card);
  color: var(--text);
}

.sidebar-nav-item.active {
  background: rgba(255, 59, 78, 0.1);
  color: var(--red);
}

.sidebar-nav-item .icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.sidebar-nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 20px 16px 8px;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.sidebar-footer .sidebar-nav-item {
  color: var(--text-muted);
}

.sidebar-footer .sidebar-nav-item:hover {
  color: var(--red);
  background: rgba(255, 59, 78, 0.05);
}

/* Main Content */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  min-height: 100vh;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* Dashboard Table */
.dash-table-wrap {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.dash-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.dash-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.dash-table .actions {
  display: flex;
  gap: 8px;
}

/* Dashboard Form */
.dash-form {
  padding: 32px;
}

.dash-form-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.dash-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dash-form-full {
  grid-column: 1 / -1;
}

.dash-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  grid-column: 1 / -1;
}

/* Dashboard Tags */
.dash-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.dash-tag.red { background: rgba(255, 59, 78, 0.1); color: var(--red); }
.dash-tag.orange { background: rgba(255, 107, 53, 0.1); color: var(--orange); }
.dash-tag.green { background: rgba(16, 185, 129, 0.1); color: var(--green); }
.dash-tag.blue { background: rgba(59, 130, 246, 0.1); color: var(--blue); }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-text {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  max-width: 400px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
}

.toast.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.toast.info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 32px;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Mobile Dashboard */
.dash-mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 101;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-name { font-size: clamp(2.5rem, 10vw, 4rem); }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Dashboard Mobile */
  .dash-mobile-toggle { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    transition: var(--transition);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
    padding: 24px;
    padding-top: 72px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dash-form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
