/* =============================================
   CV WEBSITE — DARK THEME + PARALLAX
   Design System & Full Styles
   ============================================= */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  /* Backgrounds */
  --bg-primary: #07070d;
  --bg-secondary: #0d0d16;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  /* Accent gradient: teal ➜ violet */
  --accent-start: #00d4aa;
  --accent-end: #7c5cfc;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);

  /* Text */
  --text-primary: #e8e8ef;
  --text-secondary: #9898a8;
  --text-muted: #5a5a6e;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 212, 170, 0.2);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 12vh, 140px);
  --container-max: 1100px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ---------- GLOBAL UTILITIES ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  position: relative;
  z-index: 2;
}

.accent {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- GLASS CARD ---------- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 36px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-dim);
}

.glass-card:hover::before {
  opacity: 1;
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 5vw, 60px);
  transition: all 0.4s ease;
}

.nav--scrolled {
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px clamp(24px, 5vw, 60px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--cta {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid var(--border-glow);
  padding: 8px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  box-shadow: 0 0 20px var(--accent-dim);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- PARALLAX ---------- */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: -10%;
  right: -10%;
  bottom: -20%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* Hero gradient orbs */
.hero .parallax-bg:first-of-type {
  background:
    radial-gradient(ellipse 800px 800px at 15% 50%, rgba(0, 212, 170, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 600px 600px at 85% 30%, rgba(124, 92, 252, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 50% 80%, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
}

.parallax-bg--stars {
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 50% 10%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 70% 80%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(2px 2px at 15% 80%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 60% 45%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 85% 15%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 40% 90%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 25% 35%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 5% 55%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 75% 25%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 45% 70%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 95% 65%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 20% 95%, rgba(255, 255, 255, 0.25), transparent);
}

.parallax-bg--subtle {
  background:
    radial-gradient(ellipse 600px 600px at 80% 40%, rgba(0, 212, 170, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 20% 70%, rgba(124, 92, 252, 0.06) 0%, transparent 70%);
}

.parallax-bg--subtle2 {
  background:
    radial-gradient(ellipse 600px 600px at 20% 40%, rgba(124, 92, 252, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 75% 70%, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__greeting {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  background: var(--bg-card);
}

.hero__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero__link:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero__scroll-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.hero__scroll-cta svg {
  width: 20px;
  height: 20px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: var(--section-padding) 0;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.section__number {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 12px;
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-start), var(--accent-end), transparent);
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  margin-bottom: 32px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -32px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
  z-index: 2;
}

/* ---------- CARDS ---------- */
.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--text-primary);
}

.card__badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.card__subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card__list {
  list-style: none;
}

.card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.card__list li:last-child {
  margin-bottom: 0;
}

.card__list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

/* ---------- PROJECTS GRID ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.project-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.project-card .card__title {
  margin-bottom: 12px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

/* ---------- TAGS ---------- */
.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.tag--primary {
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent-start);
}

.tag--secondary {
  background: rgba(124, 92, 252, 0.1);
  color: var(--accent-end);
}

.tag--accent {
  background: rgba(255, 171, 64, 0.1);
  color: #ffab40;
}

.tag--lang {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.tag--lang small {
  color: var(--text-muted);
  margin-left: 2px;
}

/* ---------- SKILLS GRID ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.skill-group {
  padding: clamp(20px, 3vw, 28px);
}

.skill-group__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-group__title svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.skill-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- CONTACT ---------- */
.section--contact {
  text-align: center;
  padding-bottom: 60px;
}

.contact-content {
  max-width: 600px;
}

.contact__text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

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

.btn--primary:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 30px var(--accent-dim);
  transform: translateY(-2px);
}

.contact__socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.contact__socials a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.contact__socials a svg {
  width: 20px;
  height: 20px;
}

.contact__socials a:hover {
  border-color: var(--border-glow);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

/* stagger children */
.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal:nth-child(5) {
  transition-delay: 0.15s;
}

.reveal:nth-child(6) {
  transition-delay: 0.25s;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 60px 40px;
    background: rgba(7, 7, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    transition: right 0.4s var(--ease-out-expo);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__links {
    flex-direction: column;
    align-items: center;
  }

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

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

  .timeline {
    padding-left: 24px;
  }

  .timeline__dot {
    left: -24px;
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .hero__name {
    font-size: 2.2rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .glass-card {
    padding: 20px;
  }
}

/* ---------- GLOW CURSOR EFFECT ---------- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ---------- FLOATING PARALLAX SHAPES ---------- */
.floating-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  transition: none;
}

/* Ring — hollow circle */
.floating-shape--ring {
  border-radius: 50%;
  background: transparent;
}

/* Dot — glowing sphere */
.floating-shape--dot {
  border-radius: 50%;
}

/* Cross — plus sign via pseudo-elements */
.floating-shape--cross {
  background: transparent;
}

.floating-shape--cross::before,
.floating-shape--cross::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--cross-color, rgba(0, 212, 170, 0.12));
  border-radius: 1px;
}

.floating-shape--cross::before {
  width: 100%;
  height: 2px;
  transform: translate(-50%, -50%);
}

.floating-shape--cross::after {
  width: 2px;
  height: 100%;
  transform: translate(-50%, -50%);
}

/* Line — horizontal bar */
.floating-shape--line {
  border-radius: 1px;
}

/* Triangle — pure CSS via borders (set inline) */
.floating-shape--triangle {
  background: transparent !important;
}

/* Hide floating shapes on very small screens for performance */
@media (max-width: 480px) {
  .floating-shape {
    display: none;
  }
}