/* ========================================
   KRSNASGR.COM — Single Screen Portfolio
   ======================================== */

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

:root {
  --bg:        #0a0a0f;
  --border:    #1e1e2e;
  --text:      #e0e0e8;
  --text-dim:  #6a6a82;
  --accent:    #00e5a0;
  --accent2:   #00b4d8;
  --gradient:  linear-gradient(135deg, #00e5a0, #00b4d8);
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

html {
  -webkit-font-smoothing: antialiased;
  height: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100%;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.intro__line .gradient-text {
  font-weight: 700;
}

/* --- Page --- */
.page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Background --- */
.bg {
  position: absolute;
  inset: -10px;
  z-index: 0;
}
.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: .18;
  filter: saturate(.6);
}
.bg__code {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  pointer-events: none;
}

.bg__code-col {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.bg__code-col pre {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--mono);
  font-size: .6rem;
  line-height: 1.7;
  color: var(--accent);
  opacity: .15;
  white-space: pre;
  margin: 0;
  padding: 0;
  animation: matrixScroll var(--speed) linear infinite;
}

@keyframes matrixScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.bg__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 229, 160, .06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 180, 216, .04) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(10,10,15,.2) 0%, rgba(10,10,15,.5) 50%, rgba(10,10,15,.85) 100%);
}

/* --- Content layout --- */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 60px;
  padding: 0 48px;
  max-width: 1100px;
  width: 100%;
}

/* --- Columns --- */
.col {
  animation: fadeIn .8s ease both;
}

.col--profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  justify-content: center;
}

.col--projects {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  animation-delay: .2s;
  border-left: 1.5px solid var(--accent);
  padding-left: 60px;
  box-shadow: inset 24px 0 24px -20px rgba(0, 229, 160, .08);
}

/* --- Profile --- */
.profile {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-bottom: 24px;
}

.profile__img-wrap {
  position: relative;
  width: 64px;
  height: 64px;
}
.profile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
}
.profile__glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: .2;
  filter: blur(16px);
  z-index: 0;
  animation: pulse 4s ease-in-out infinite;
}

.profile__name {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 6px;
}

.profile__tag {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
}

.profile__platforms {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-dim);
  font-weight: 500;
}
.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: .5;
}

/* --- Intro (in profile column) --- */
.col--profile .intro__line {
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 280px;
  color: var(--text-dim);
}

/* --- Projects --- */
.projects__title {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.projects__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card {
  display: block;
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: all .3s ease;
}

.project-card:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 160, .04);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 229, 160, .08);
}

.project-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.project-card__name {
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

.project-card__badge {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 229, 160, .1);
  color: var(--accent);
}

.project-card__desc {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.project-card__links {
  display: flex;
  gap: 14px;
}

.project-card__link {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--accent2);
  transition: color .2s ease;
}

.project-card__link:hover {
  color: var(--accent);
}

.intro__socials {
  display: flex;
  gap: 16px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  transition: all .3s ease;
}
.social:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 229, 160, .06);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 229, 160, .1);
}

/* --- Footer --- */
.footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  opacity: .4;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: .2; transform: scale(1); }
  50%      { opacity: .35; transform: scale(1.05); }
}

/* --- Responsive --- */
@media (max-width: 700px) {
  body { overflow: auto; }

  .page {
    position: relative;
    min-height: 100dvh;
    padding: 60px 0;
  }

  .content {
    flex-direction: column;
    gap: 36px;
    text-align: center;
    padding: 0 28px;
  }

  .col--profile { align-items: center; }

  .col--projects {
    border-left: none;
    box-shadow: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 36px;
    align-items: center;
    text-align: center;
  }

  .profile__img-wrap {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
  }

  .profile__name { font-size: 1.3rem; }

  .col--profile .intro__line { font-size: .9rem; }
  .intro__socials { justify-content: center; }

  .project-card__links { justify-content: center; }
}
