:root {
  --primary: #e8b86d;
  --primary-dark: #d4a356;
  --secondary: #8b6f47;
  --dark: #0a0b14;
  --dark-alt: #14151f;
  --light: #f5f5f7;
  --text: #e0e0e0;
  --text-muted: #a0a0a0;
  --gradient-1: linear-gradient(135deg, #e8b86d 0%, #f2c987 100%);
  --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ЧАСТИЦЫ НА ФОНЕ */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top, #1b1c2b 0%, var(--dark) 60%);
}

.particles::before,
.particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s infinite ease-in-out;
}

.particles::before {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: 10%;
  left: 10%;
}

.particles::after {
  width: 500px;
  height: 500px;
  background: #667eea;
  bottom: 10%;
  right: 10%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -30px); }
  50% { transform: translate(-20px, 20px); }
  75% { transform: translate(20px, 30px); }
}

/* НАВИГАЦИЯ */
.navbar {
  padding: 1rem 0;
  transition: all 0.4s ease;
  background: transparent;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(10, 11, 20, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-main {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-link {
  color: var(--text) !important;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link:hover::after {
  width: 80%;
}

.btn-primary-custom {
  background: var(--gradient-1);
  border: none;
  color: var(--dark);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(232, 184, 109, 0.4);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.15), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(232, 184, 109, 0.15), transparent 50%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  background: rgba(232, 184, 109, 0.1);
  border: 1px solid rgba(232, 184, 109, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--primary);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 600px;
}

.hero-stats {
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.btn-primary-glow {
  background: var(--gradient-1);
  border: none;
  color: var(--dark);
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(232, 184, 109, 0.3);
  transition: all 0.3s ease;
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(232, 184, 109, 0.5);
  color: var(--dark);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--light);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* СОЦИАЛЬНЫЕ СЕТИ */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.social-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.social-icon:hover::before {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.social-icon:hover {
  background: var(--gradient-1);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(232, 184, 109, 0.3);
}

/* HERO IMAGE */
.hero-image-wrapper {
  position: relative;
}

.image-glow {
  position: absolute;
  inset: -30px;
  background: var(--gradient-1);
  filter: blur(60px);
  opacity: 0.25;
  border-radius: 50%;
  animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.1); opacity: 0.35; }
}

.hero-image {
  position: relative;
  width: 100%;
  border-radius: 2rem;
  box-shadow: var(--shadow);
  animation: fadeInUp 1s ease;
}

.floating-badge {
  position: absolute;
  background: rgba(10, 11, 20, 0.9);
  backdrop-filter: blur(20px);
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(232, 184, 109, 0.3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: float 3s infinite ease-in-out;
}

.badge-1 {
  top: 10%;
  right: -5%;
  color: var(--primary);
}

.badge-2 {
  bottom: 15%;
  left: -5%;
  color: #667eea;
  animation-delay: -1.5s;
}

.floating-badge i {
  font-size: 1.2rem;
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 2s ease 1s both;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 4px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

.arrow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  transform: rotate(45deg);
  animation: arrowBounce 1.5s infinite;
}

.arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes arrowBounce {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* SECTIONS */
.section-padding {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.bg-dark-alt {
  background: var(--dark-alt);
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 2px;
  margin: 1rem 0;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ABOUT */
.about-images {
  position: relative;
}

.about-img-main {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.about-img-float {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 60%;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--dark-alt);
  animation: float 4s infinite ease-in-out;
}

.about-content .lead {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 500;
}

.highlight-box {
  background: rgba(232, 184, 109, 0.08);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  position: relative;
}

.highlight-box i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(232, 184, 109, 0.08);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.skill-item i {
  font-size: 1.5rem;
  color: var(--primary);
}

/* WORK CARDS */
.work-card {
  background: var(--dark-alt);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  height: 100%;
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border-color: rgba(232, 184, 109, 0.3);
}

.work-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-card:hover .work-card-image img {
  transform: scale(1.1);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.work-card:hover .overlay-content {
  transform: translateY(0);
}

.work-card-content {
  padding: 1.8rem;
}

.work-card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.work-highlights {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

.work-highlights li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.work-highlights i {
  color: var(--primary);
}

/* ACHIEVEMENTS */
.achievement-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 1.2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  height: 100%;
}

.achievement-card:hover {
  background: rgba(232, 184, 109, 0.08);
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(232, 184, 109, 0.2);
}

.achievement-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(232, 184, 109, 0.3);
}

.achievement-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.achievement-year {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(232, 184, 109, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary);
}

/* MEDIA GALLERY */
.video-spotlight {
  background: var(--dark-alt);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-caption {
  text-align: center;
}

.video-caption h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 20, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay i {
  font-size: 2rem;
  color: var(--primary);
}

/* SPOTIFY */
.spotify-section {
  padding: 4rem 0;
  background: var(--dark-alt);
}

.spotify-embed-wrapper {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.spotify-embed-wrapper h3 {
  color: var(--primary);
}

/* CONTACT */
.contact-features {
  list-style: none;
  padding: 0;
}

.contact-features li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-features i {
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-btn:hover {
  background: var(--gradient-1);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(232, 184, 109, 0.3);
}

.contact-form-wrapper {
  background: var(--dark-alt);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-floating .form-control,
.form-floating .form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 0.8rem;
}

.form-floating .form-control:focus,
.form-floating .form-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(232, 184, 109, 0.25);
  color: var(--text);
}

.form-floating label {
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  background: var(--dark-alt);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 50px 0 0 50px;
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  border: none;
  border-radius: 50%;
  color: var(--dark);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(232, 184, 109, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(232, 184, 109, 0.5);
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 80px;
    text-align: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .about-img-float {
    position: relative;
    width: 80%;
    margin: 2rem auto 0;
    right: 0;
    bottom: 0;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .floating-badge {
    font-size: 0.7rem;
    padding: 0.5rem 0.8rem;
  }
}
