﻿:root {
  --bg-color: #0a0514;
  --surface-color: #1a103c;
  --primary-color: #a855f7;
  --primary-hover: #9333ea;
  --text-main: #f3e8ff;
  --text-muted: #d8b4fe;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--text-main);
}

h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.3s;
  z-index: 1500;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 5, 20, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  padding: 1rem 5%;
  border-bottom: 1px solid var(--surface-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
}

.nav-logo i {
  color: var(--primary-color);
}

.nav-logo:hover {
  color: var(--primary-color);
  transform: scale(1.05);
}

.navbar ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 7px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 32px;
  height: 4px;
  background-color: var(--text-main);
  border-radius: 4px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #2e1065 0%, var(--bg-color) 70%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #d8b4fe, var(--primary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h2 {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.btn:hover {
  background-color: transparent;
  box-shadow: 0 0 20px var(--primary-hover);
  transform: translateY(-3px);
}

.btn.outline {
  background-color: transparent;
  color: var(--primary-color);
}

.btn.outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

section {
  margin-bottom: 6rem;
  scroll-margin-top: 80px;
}

.content-text,
.content-image {
  flex: 1;
}

.content-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.image-preview-wrapper {
  position: relative;
  display: inline-block;
  cursor: zoom-in;
}

.content-image-preview {
  max-width: 100%;
  display: block;
  border-radius: 12px;
  border: 2px solid var(--surface-color);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.image-preview-wrapper:hover .content-image-preview {
  transform: scale(1.02);
  filter: brightness(1.08);
}

.zoom-indicator {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 20, 0.85);
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.45);
  font-size: 1.2rem;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(168, 85, 247, 0.2);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-tag {
  background-color: var(--surface-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-tag:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary-color);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--surface-color);
  padding: 2rem;
  border-radius: 12px;
  border-top: 4px solid var(--primary-color);
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.project-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.project-highlights {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-highlights li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
}

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

.project-highlights strong {
  color: var(--text-main);
}

.timeline-item {
  border-left: 2px solid var(--primary-color);
  padding-left: 2rem;
  position: relative;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-color);
}

.timeline-item:hover {
  transform: translateX(10px);
}

.timeline-item h5 {
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1rem;
}

.chat-snippet {
  background-color: #000;
  border-left: 4px solid var(--primary-color);
  padding: 1.2rem;
  margin-top: 2rem;
  border-radius: 0 8px 8px 0;
  font-family: 'Courier New', Courier, monospace;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.95rem;
  box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.05);
}

.chat-snippet span {
  display: block;
  line-height: 1.4;
}

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--surface-color);
  color: var(--text-muted);
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.cosmic-network {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  z-index: 1;
  pointer-events: none;
}

.core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 80%);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--primary-color), 0 0 80px var(--primary-hover);
  animation: pulseCore 4s infinite alternate;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(168, 85, 247, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin linear infinite;
}

.orbit-1 {
  width: 250px;
  height: 250px;
  animation-duration: 30s;
}

.orbit-2 {
  width: 450px;
  height: 450px;
  animation-duration: 45s;
  animation-direction: reverse;
}

.orbit-3 {
  width: 650px;
  height: 650px;
  animation-duration: 60s;
}

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--text-main);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--text-main), 0 0 25px var(--primary-color);
}

.orbit-1 .node {
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-2 .node {
  background-color: var(--primary-color);
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
}

.orbit-3 .node {
  background-color: var(--text-muted);
  top: 86%;
  left: 15%;
}

.core,
.orbit,
.node {
  transition: box-shadow 0.5s ease, border-color 0.5s ease, background-color 0.5s ease;
}

.hero:hover .core {
  box-shadow: 0 0 60px var(--primary-color), 0 0 120px var(--primary-hover);
}

.hero:hover .orbit {
  border-color: rgba(168, 85, 247, 0.6);
}

.hero:hover .node {
  box-shadow: 0 0 20px var(--text-main), 0 0 40px var(--primary-hover);
  background-color: #fff;
}

.hero:hover .orbit-1 {
  animation-duration: 8s;
}

.hero:hover .orbit-2 {
  animation-duration: 15s;
}

.hero:hover .orbit-3 {
  animation-duration: 25s;
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .content-text,
  .content-image {
    min-width: 100%;
  }

  .navbar {
    background: transparent;
    border: none;
    backdrop-filter: none;
    padding: 0;
  }

  .nav-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 3000;
    background: rgba(26, 16, 60, 0.95);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3), 0 0 25px rgba(168, 85, 247, 0.15);
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px;
    background: rgba(26, 16, 60, 0.95);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3), 0 0 25px rgba(168, 85, 247, 0.15);
    z-index: 3000;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(250px, 80vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 90px;
    background-color: rgba(10, 5, 20, 0.98);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(168, 85, 247, 0.35);
    gap: 0;
    transition: right 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 2000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.05rem;
  }

  .nav-menu a.active {
    color: var(--primary-color);
    background: rgba(168, 85, 247, 0.08);
    border-left: 3px solid var(--primary-color);
  }

  .nav-menu a:hover {
    background: rgba(168, 85, 247, 0.08);
    color: var(--primary-color);
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background-color: var(--primary-color);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background-color: var(--primary-color);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.1rem;
  }

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

  .cosmic-network {
    transform: translate(-50%, -50%) scale(0.6);
  }
}

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

@keyframes spin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulseCore {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.2;
  }
}
