/* ===========================================
   RESET / BASE
   =========================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #06060f;
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

a { text-decoration: none; }

/* ===========================================
   DISPLAY
   =========================================== */
.hidden       { display: none; }
.block        { display: block; }
.inline-block { display: inline-block; }
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }

/* ===========================================
   POSITION
   =========================================== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }

.top-0    { top: 0; }
.bottom-0 { bottom: 0; }
.left-0   { left: 0; }
.inset-x-0    { left: 0; right: 0; }
.left-\[7px\] { left: 7px; }
.left-1\/2    { left: 50%; }
.z-50         { z-index: 50; }
.overflow-hidden { overflow: hidden; }

/* ===========================================
   FLEX
   =========================================== */
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }

.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }

.justify-between { justify-content: space-between; }
.justify-start   { justify-content: flex-start; }
.justify-end     { justify-content: flex-end; }

/* ===========================================
   GRID
   =========================================== */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ===========================================
   GAP
   =========================================== */
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-14 { gap: 3.5rem; }
.gap-16 { gap: 4rem; }
.gap-x-3 { column-gap: 0.75rem; }

/* ===========================================
   WIDTH / HEIGHT
   =========================================== */
.w-full       { width: 100%; }
.w-px         { width: 1px; }
.w-2          { width: 0.5rem; }
.w-9          { width: 2.25rem; }
.h-2          { height: 0.5rem; }
.h-9          { height: 2.25rem; }
.h-10         { height: 2.5rem; }
.min-h-screen { min-height: 100vh; }

/* ===========================================
   MAX-WIDTH
   =========================================== */
.max-w-md  { max-width: 28rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-6xl { max-width: 72rem; }

/* ===========================================
   MARGIN
   =========================================== */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-10   { margin-top: 2.5rem; }
.mb-1    { margin-bottom: 0.25rem; }
.mb-2    { margin-bottom: 0.5rem; }
.mb-3    { margin-bottom: 0.75rem; }
.mb-4    { margin-bottom: 1rem; }
.mb-5    { margin-bottom: 1.25rem; }
.mb-6    { margin-bottom: 1.5rem; }
.mb-7    { margin-bottom: 1.75rem; }
.mb-10   { margin-bottom: 2.5rem; }
.mb-12   { margin-bottom: 3rem; }
.mb-14   { margin-bottom: 3.5rem; }
.ml-0\.5 { margin-left: 0.125rem; }
.ml-1\.5 { margin-left: 0.375rem; }
.ml-3    { margin-left: 0.75rem; }

/* ===========================================
   PADDING
   =========================================== */
.p-6     { padding: 1.5rem; }
.p-7     { padding: 1.75rem; }
.px-3    { padding-left: 0.75rem;  padding-right: 0.75rem; }
.px-4    { padding-left: 1rem;     padding-right: 1rem; }
.px-5    { padding-left: 1.25rem;  padding-right: 1.25rem; }
.px-6    { padding-left: 1.5rem;   padding-right: 1.5rem; }
.py-1\.5 { padding-top: 0.375rem;  padding-bottom: 0.375rem; }
.py-2    { padding-top: 0.5rem;    padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem;  padding-bottom: 0.625rem; }
.py-4    { padding-top: 1rem;      padding-bottom: 1rem; }
.py-5    { padding-top: 1.25rem;   padding-bottom: 1.25rem; }
.py-8    { padding-top: 2rem;      padding-bottom: 2rem; }
.py-20   { padding-top: 5rem;      padding-bottom: 5rem; }
.py-28   { padding-top: 7rem;      padding-bottom: 7rem; }
.pb-3    { padding-bottom: 0.75rem; }
.pt-20   { padding-top: 5rem; }
.pl-2    { padding-left: 0.5rem; }
.pl-8    { padding-left: 2rem; }

/* ===========================================
   TYPOGRAPHY — family
   =========================================== */
.font-display { font-family: 'Space Grotesk', sans-serif; }
.font-body    { font-family: 'Inter', sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }

/* ===========================================
   TYPOGRAPHY — size
   =========================================== */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1; }
.text-6xl  { font-size: 3.75rem;  line-height: 1; }
.text-7xl  { font-size: 4.5rem;   line-height: 1; }

/* ===========================================
   TYPOGRAPHY — weight / spacing / align
   =========================================== */
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

.leading-\[1\.1\] { line-height: 1.1; }
.leading-relaxed  { line-height: 1.625; }
.leading-snug     { line-height: 1.375; }
.leading-\[1\.9\] { line-height: 1.9; }

.tracking-wider { letter-spacing: 0.05em; }
.text-right     { text-align: right; }
.text-left      { text-align: left; }

/* ===========================================
   COLORS — text
   =========================================== */
.text-white        { color: #ffffff; }
.text-slate-100    { color: #f1f5f9; }
.text-slate-200    { color: #e2e8f0; }
.text-slate-300    { color: #cbd5e1; }
.text-slate-400    { color: #94a3b8; }
.text-slate-500    { color: #64748b; }
.text-slate-600    { color: #475569; }
.text-slate-700    { color: #334155; }
.text-emerald-400  { color: #34d399; }
.text-brand-cyan   { color: #00e5ff; }
.text-brand-purple { color: #8b5cf6; }

/* ===========================================
   COLORS — background
   =========================================== */
.bg-brand-cyan        { background-color: #00e5ff; }
.bg-emerald-400       { background-color: #34d399; }
.bg-\[\#0c0c1e\]      { background-color: #0c0c1e; }
.bg-\[\#06060f\]\/80  { background-color: rgba(6, 6, 15, 0.8); }
.bg-\[\#06060f\]\/95  { background-color: rgba(6, 6, 15, 0.95); }

/* ===========================================
   BORDERS
   =========================================== */
.border   { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-\[\#1e1e3a\] { border-color: #1e1e3a; }

.rounded-full { border-radius: 9999px; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-lg   { border-radius: 0.5rem; }

/* ===========================================
   EFFECTS
   =========================================== */
.backdrop-blur-md {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.opacity-20 { opacity: 0.2; }

/* ===========================================
   TRANSITIONS
   =========================================== */
.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: ease;
  transition-duration: 200ms;
}
.duration-200 { transition-duration: 200ms; }

/* ===========================================
   HOVER / FOCUS pseudo-class utilities
   =========================================== */
.hover\:text-brand-cyan:hover { color: #00e5ff; }
.hover\:text-white:hover      { color: #ffffff; }
.hover\:text-slate-100:hover  { color: #f1f5f9; }
.focus\:outline-none:focus    { outline: none; }
.focus\:text-brand-cyan:focus { color: #00e5ff; }

/* ===========================================
   TRANSFORMS
   =========================================== */
.-translate-x-px { transform: translateX(-1px); }

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===========================================
   GRADIENT UTILITIES
   =========================================== */
.bg-gradient-to-b {
  background-image: linear-gradient(
    to bottom,
    var(--tw-gradient-from, transparent),
    var(--tw-gradient-via, var(--tw-gradient-to, transparent)),
    var(--tw-gradient-to, transparent)
  );
}
.from-brand-cyan  { --tw-gradient-from: #00e5ff; }
.via-brand-purple { --tw-gradient-via: #8b5cf6; }
.to-transparent   { --tw-gradient-to: transparent; }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (min-width: 640px) {
  .sm\:flex-row    { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:hidden      { display: none; }
  .md\:flex        { display: flex; }
  .md\:block       { display: block; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-3xl    { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl    { font-size: 2.25rem;  line-height: 2.5rem; }
  .md\:text-6xl    { font-size: 3.75rem;  line-height: 1; }
  .md\:left-1\/2   { left: 50%; }
  .md\:-translate-x-px { transform: translateX(-1px); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:text-7xl    { font-size: 4.5rem; line-height: 1; }
}

/* ===========================================
   CUSTOM COMPONENTS
   =========================================== */

/* subtle dot grid */
.bg-grid {
  background-image: radial-gradient(circle, rgba(0,229,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* gradient text */
.gradient-text {
  background: linear-gradient(135deg, #00e5ff 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* nav link */
.nav-link {
  position: relative;
  color: #94a3b8;
  transition: color 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, #00e5ff, #8b5cf6);
  transition: width 0.25s;
}
.nav-link:hover { color: #00e5ff; }
.nav-link:hover::after { width: 100%; }

/* terminal card */
.terminal {
  background: #090917;
  border: 1px solid #1e1e3a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,229,255,0.08), 0 0 80px rgba(0,229,255,0.03);
  transition: box-shadow 0.3s;
}
.terminal:hover {
  box-shadow: 0 0 50px rgba(0,229,255,0.16), 0 0 100px rgba(0,229,255,0.06);
}
.terminal-header {
  background: #0d0d20;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #1e1e3a;
}
.terminal-dot {
  width: 12px; height: 12px; border-radius: 50%;
}

/* skill card */
.skill-card {
  background: rgba(12,12,30,0.85);
  border: 1px solid #1e1e3a;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,0.35);
  box-shadow: 0 12px 40px rgba(0,229,255,0.08), 0 0 0 1px rgba(0,229,255,0.08);
}

/* skill tags */
.tag-cyan {
  display: inline-flex;
  padding: 4px 12px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 6px;
  color: #7dd3e8;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}
.tag-purple {
  display: inline-flex;
  padding: 4px 12px;
  background: rgba(139,92,246,0.07);
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 6px;
  color: #b4a0e8;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

/* section rule */
.section-line {
  width: 52px; height: 3px;
  background: linear-gradient(90deg, #00e5ff, #8b5cf6);
  border-radius: 2px;
}

/* cursor blink */
.cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: #00e5ff;
  vertical-align: middle;
  border-radius: 1px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

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

/* buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #00e5ff, #8b5cf6);
  color: #05040f;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0,229,255,0.28);
}
.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,229,255,0.45);
}
.btn-primary:active   { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 9px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid #2a2a46;
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-outline:hover {
  border-color: rgba(0,229,255,0.5);
  color: #00e5ff;
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(0,229,255,0.1);
}
.btn-outline:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,229,255,0.25);
}
.btn-outline:active   { transform: scale(0.97); }
.btn-outline:disabled { opacity: 0.45; cursor: not-allowed; }

/* social link */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  transition: color 0.2s;
}
.social-link svg { transition: transform 0.2s; }
.social-link:hover svg    { transform: scale(1.15); }
.social-link.cyan:hover   { color: #00e5ff; }
.social-link.purple:hover { color: #8b5cf6; }

/* timeline */
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding-left: 32px;
  margin-bottom: 28px;
}
.tl-dot {
  position: absolute;
  left: 0; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid #1e1e3a;
  background: #06060f;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tl-item:hover .tl-dot {
  border-color: #00e5ff;
  box-shadow: 0 0 8px rgba(0,229,255,0.4);
}
.tl-card {
  background: rgba(12,12,30,0.75);
  border: 1px solid #1e1e3a;
  border-radius: 10px;
  padding: 14px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tl-item:hover .tl-card {
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 6px 24px rgba(0,229,255,0.06);
}
@media (min-width: 768px) {
  .tl-item {
    grid-template-columns: 1fr 1fr;
    padding-left: 0;
    gap: 0;
    margin-bottom: 20px;
  }
  .tl-item.left  { text-align: right; }
  .tl-item.right { text-align: left; }
  .tl-item.left  .tl-card { margin-right: 28px; }
  .tl-item.right .tl-card { margin-left: 28px; grid-column: 2; }
  .tl-dot {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* about stat card */
.stat-card {
  background: rgba(12,12,30,0.85);
  border: 1px solid #1e1e3a;
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 8px 32px rgba(0,229,255,0.07);
}
