/*
 * Custom portfolio styling for a neobank‑inspired, cloud and IT security themed
 * personal site. The look and feel remain dark and modern with neon accents
 * derived from the original assets. This stylesheet defines layout, colours,
 * typography, decorative effects (glows, grid), responsive behaviour and
 * small interactions such as hover states and 3D tilt support. All colour
 * variables live on the :root element for easy theming.
 */

:root {
  --bg: #070914;
  --bg2: #0b0e1d;
  --text: #e9e9f2;
  --muted: #b8b9c9;
  --pink: #ff2bdc;
  --blue: #2b8cff;
  --radius: 18px;
  --container: 1120px;
}

/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #070914 0%, #0b0e1d 40%, #0d1030 100%);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.92;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Decorative FX layers: grid and glows. These sit behind the content via negative
   z‑index values and move slightly with the pointer (see script.js). */
.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -10;
}

.fx-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.55;
  z-index: -9;
}

.fx-glow {
  width: 700px;
  height: 700px;
  position: fixed;
  filter: blur(170px);
  opacity: 0.55;
  z-index: -8;
  transform: translate(0, 0);
  transition: transform 0.12s linear;
}

.fx-glow--pink {
  background: var(--pink);
  top: -240px;
  right: -240px;
}

.fx-glow--blue {
  background: var(--blue);
  bottom: -260px;
  left: -260px;
}

/* Top bar containing contact info and the language switcher. A slight blur
   and semi‑transparent background keeps it readable while blending into the page. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 16, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.topbar__contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  opacity: 0.92;
}

.sep {
  opacity: 0.5;
}

/* Dot ring: animated conic gradient ring next to the contact details. */
.dot-ring {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 43, 220, 0.95) 0 4px, transparent 5px),
    conic-gradient(from 90deg, rgba(255, 43, 220, 1), rgba(255, 43, 220, 0.1), rgba(43, 140, 255, 1), rgba(255, 43, 220, 1));
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
  mask: radial-gradient(circle, transparent 55%, #000 56%);
  filter: drop-shadow(0 0 10px rgba(255, 43, 220, 0.35));
}

/* Language switch pills. The active pill is highlighted via data attribute. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 6px;
  cursor: pointer;
}

.lang-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.lang-pill[data-active="true"] {
  background: var(--pink);
  color: var(--bg);
}

.lang-pill[data-active="false"] {
  background: transparent;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.btn--primary {
  background: var(--pink);
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(255, 43, 220, 0.45);
}

.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(255, 43, 220, 0.6);
}

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

.btn--ghost:hover {
  background: var(--pink);
  color: var(--bg);
  box-shadow: 0 4px 14px rgba(255, 43, 220, 0.4);
}

.accent {
  color: var(--pink);
}

/* Hero section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  position: relative;
}

.hero__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero__left {
  flex: 1 1 0;
  max-width: 580px;
  z-index: 2;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Shimmer effect for the name */
.shimmer {
  background: linear-gradient(90deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s infinite;
  background-size: 200% 200%;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero__role {
  margin-top: 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pink);
}

.hero__tagline {
  margin-top: 0.8rem;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.5;
}

.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__image {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 400px;
}

.hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  /*box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);*/
}

/* Section base styling */
.section {
  padding: 100px 0;
  position: relative;
}

.section--dark {
  background: var(--bg2);
}

.section--black {
  background: #05070e;
}

.center {
  text-align: center;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 2rem;
}

.prose p {
  margin-bottom: 1rem;
  max-width: 70ch;
}

/* About grid: art & text */
.about__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  position: relative;
}

.about__art {
  flex: 0 0 auto;
  width: 40%;
  min-height: 320px;
  position: relative;
}

.about__text {
  flex: 1 1 0;
  z-index: 2;
}

/* Glowing orbs used as ambient art in the about section */
.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--pink) 0%, var(--blue) 100%);
  filter: blur(40px);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.orb--big {
  width: 360px;
  height: 360px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
}

.orb--small {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 70%;
  transform: translate(-50%, -50%);
}

/* Cards grid layout */
.cards {
  display: grid;
  gap: 24px;
}

.cards--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cards--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Individual card styling */
.card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card--light {
  background: rgba(255, 255, 255, 0.06);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.card__media {
  width: 80px;
  height: 80px;
  margin-bottom: 1.2rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.card__media--cloud {
  background-image: url('./assets/icon-cloud.png');
}

.card__media--neobank {
  background-image: url('./assets/icon-neobank.png');
}

.card__media--sec {
  background-image: url('./assets/icon-sec.png');
}

.card__title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--pink);
}

.card__lead {
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

/* Value grid */
.value-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--pink);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Experience section */
.exp__grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 900px) {
  .exp__grid {
    flex-direction: row;
    gap: 80px;
  }
}

.exp__left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.exp__left .section__title {
  margin-bottom: 40px;
}

.ring {
  width: 240px;
  height: 240px;
  border: 12px solid var(--pink);
  border-radius: 50%;
  opacity: 0.35;
  margin-top: 20px;
}

.exp__right {
  flex: 1 1 0;
}

.job {
  margin-bottom: 2rem;
}

.job__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--pink);
}

.job__meta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.list--dots {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.list--dots li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.list--dots li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

/* Timeline layout for the experience section. Each job entry displays a large year on the left with details on the right. */
.job--timeline {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.job--timeline .job__year {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--muted);
  line-height: 1;
  padding-top: 0.4rem;
}

@media (min-width: 768px) {
  .job--timeline .job__year {
    font-size: 3rem;
  }
}

/* Links for each job entry (e.g. external company websites) */
.job__links {
  margin-top: 0.5rem;
}

.job__links a {
  font-size: 1.2rem;
  color: var(--pink);
  margin-right: 0.5rem;
  transition: opacity 0.3s ease;
}

.job__links a:hover {
  opacity: 0.8;
}

/* Career path navigation styles */
.career {
  flex: 0 0 auto;
  display: none;
}

/* Show career navigation on larger screens */
@media (min-width: 900px) {
  .career {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 12px;
  }
  .career-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .career-list li {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pink);
    transition: transform 0.3s ease, color 0.3s ease;
  }
  .career-list li:last-child {
    margin-bottom: 0;
  }
  .career-list li a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
  }
  .career-list li:hover {
    transform: translateX(4px);
    color: var(--white);
  }
}

/* Reveal animation for scroll triggered elements */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Footer styling */
.footer {
  padding: 60px 0;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer__grid {
    flex-direction: row;
  }
}

.footer__links {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
}

.footer__links a {
  color: var(--pink);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.footer__links a:hover {
  opacity: 0.85;
}

.to-top {
  position: relative;
  padding-left: 20px;
}

.to-top::before {
  content: '\2191';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pink);
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero__grid {
    flex-direction: column;
    text-align: center;
  }
  .hero__left,
  .hero__image {
    max-width: 100%;
  }
  .about__grid {
    flex-direction: column;
    gap: 60px;
    text-align: center;
  }
  .about__art {
    width: 100%;
    min-height: 260px;
  }
  .exp__grid {
    flex-direction: column;
  }
}
.topbar__contacts .icon{
  opacity:.75;
  margin-right:4px;
  font-size:0.95em;
}
