:root {
  --bg-dark: #020617;
  --bg-accent: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.5);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-dark: #0369a1;
  --glass-effect: blur(12px);
}

* {
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top right, #1e293b, var(--bg-dark));
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}


/* LOADING PAGE STYLE */
#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 2000;
  font-family: 'Fira Code', monospace;
  color: var(--accent);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.boot-line {
  margin-bottom: 4px;
  font-size: 0.85rem;
  opacity: 0;
  animation: fadeIn 0.1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: none;
}

header {
  text-align: center;
  padding: 100px 0 60px;
}

header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin: 0;
  font-weight: 800;
  background: linear-gradient(to bottom right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.link-handle {
  font-family: 'Inter', sans-serif;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  opacity: 0.8;
}

.link-handle:hover {
  opacity: 1;
  text-decoration: underline;
}

.badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 100px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: var(--glass-effect);
  -webkit-backdrop-filter: var(--glass-effect);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
}

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

.card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card.full {
  grid-column: 1 / -1;
}

h2 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 4px;
  display: inline-block;
}

p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.highlight {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(30, 41, 59, 0.5));
  border-left: 4px solid var(--accent);
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  color: #e0f2fe;
  font-style: italic;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-entry {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.item-entry:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
}

.item-entry strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.item-entry span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.contact-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
  transform: scale(1.02);
}

/* TERMINAL MODAL */
#terminal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

#terminal-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.terminal-window {
  background: #000;
  width: 90%;
  max-width: 700px;
  height: 450px;
  border-radius: 12px;
  border: 1px solid #334155;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  font-family: 'Fira Code', monospace;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  background: #1e293b;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.term-dots {
  display: flex;
  gap: 8px;
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.close-term {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 5px;
}

.close-term:hover {
  color: #fff;
}

.terminal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  color: #f8fafc;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
}

.term-line {
  margin-bottom: 8px;
  line-height: 1.4;
}

.term-prompt {
  color: #38bdf8;
  font-weight: bold;
}

.term-input-area {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 15px 20px;
  background: #000;
  border-top: 1px solid #1e293b;
}

.term-input {
  background: transparent;
  border: none;
  color: #f8fafc;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  outline: none;
  flex: 1;
  position: relative;
  z-index: 1001;
}

/* EXIT LANDING STYLE */
#exit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050505;
  z-index: 3000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #00FF41;
  font-family: 'Courier New', Courier, monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.exit-glitch {
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0 0 10px #00FF41;
  animation: glitch-exit 1s linear infinite;
}

@keyframes glitch-exit {

  2%,
  64% {
    transform: translate(2px, 0) skew(0deg);
  }

  4%,
  60% {
    transform: translate(-2px, 0) skew(0deg);
  }

  8%,
  52% {
    transform: translate(2px, 0) skew(1deg);
  }

  10%,
  48% {
    transform: translate(-2px, 0) skew(-1deg);
  }

  12%,
  40% {
    transform: translate(0, 0) skew(0deg);
  }
}

.exit-logs {
  margin: 30px 0;
  text-align: left;
  border: 1px solid #00FF41;
  padding: 20px;
  background: rgba(0, 255, 65, 0.05);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
  min-width: 300px;
  font-size: 0.9rem;
}

.exit-log-entry {
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeIn-exit 0.5s forwards;
}

@keyframes fadeIn-exit {
  to {
    opacity: 1;
  }
}

.btn-reboot-exit {
  margin-top: 20px;
  padding: 10px 25px;
  background: transparent;
  color: #ffb000;
  border: 1px solid #ffb000;
  font-family: 'Courier New', Courier, monospace;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  box-shadow: 0 0 5px #ffb000;
}

.btn-reboot-exit:hover {
  background: #ffb000;
  color: #050505;
  box-shadow: 0 0 20px #ffb000;
}

.exit-status-bar {
  position: absolute;
  bottom: 20px;
  width: 90%;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(0, 255, 65, 0.6);
}

.profile-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.profile-pic {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top 20%;
  border: 4px solid var(--accent);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}


.term-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: var(--bg-dark);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  z-index: 999;
  font-weight: bold;
  font-family: 'Fira Code', monospace;
  border: none;
}

.term-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  background: var(--accent-hover);
}

footer {
  text-align: center;
  margin-top: 80px;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--card-border);
}

@media (max-width: 768px) {
  header {
    padding: 60px 0 40px;
  }

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

  .card {
    padding: 24px;
  }

  .terminal-window {
    width: 95%;
    height: 85vh;
    max-height: 600px;
  }

}