@import url('https://fonts.googleapis.com/css2?family=Bad+Script&family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-color: #0d0d0d;
  --surface-color: #1a1a1a;
  --surface-hover: #262626;
  --text-primary: #f2f2f2;
  --text-secondary: #a3a3a3;
  --accent-color: #d4af37;
  /* Gold */
  --accent-hover: #f1c40f;

  --font-heading: 'Bad Script', cursive;
  --font-body: 'Inter', sans-serif;

  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.2;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--accent-color);
}

.logo span {
  color: var(--text-primary);
}


.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='%23d4af37'%3E%3Cpath d='M 10 0 Q 10 10 20 10 Q 10 10 10 20 Q 10 10 0 10 Q 10 10 10 0 Z' transform='translate(20, 30) scale(0.8)' opacity='0.3'/%3E%3Cpath d='M 10 0 Q 10 10 20 10 Q 10 10 10 20 Q 10 10 0 10 Q 10 10 10 0 Z' transform='translate(80, 90) scale(0.5)' opacity='0.15'/%3E%3Cpath d='M 10 0 Q 10 10 20 10 Q 10 10 10 20 Q 10 10 0 10 Q 10 10 10 0 Z' transform='translate(140, 40) scale(0.6)' opacity='0.2'/%3E%3Cpath d='M 10 0 Q 10 10 20 10 Q 10 10 10 20 Q 10 10 0 10 Q 10 10 10 0 Z' transform='translate(170, 150) scale(0.4)' opacity='0.1'/%3E%3Cpath d='M 10 0 Q 10 10 20 10 Q 10 10 10 20 Q 10 10 0 10 Q 10 10 10 0 Z' transform='translate(40, 140) scale(0.7)' opacity='0.25'/%3E%3Cpath d='M 10 0 Q 10 10 20 10 Q 10 10 10 20 Q 10 10 0 10 Q 10 10 10 0 Z' transform='translate(110, 170) scale(0.9)' opacity='0.1'/%3E%3Cpath d='M 10 0 Q 10 10 20 10 Q 10 10 10 20 Q 10 10 0 10 Q 10 10 10 0 Z' transform='translate(180, 80) scale(0.5)' opacity='0.15'/%3E%3Cpath d='M 10 0 Q 10 10 20 10 Q 10 10 10 20 Q 10 10 0 10 Q 10 10 10 0 Z' fill='%23ffffff' transform='translate(60, 60) scale(0.3)' opacity='0.25'/%3E%3Cpath d='M 10 0 Q 10 10 20 10 Q 10 10 10 20 Q 10 10 0 10 Q 10 10 10 0 Z' fill='%23ffffff' transform='translate(130, 120) scale(0.4)' opacity='0.2'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23d4af37'%3E%3Cpath d='M0,100 C300,400 1140,-200 1440,100' stroke-width='1' stroke-opacity='0.1'/%3E%3Cpath d='M0,120 C600,50 840,190 1440,120' stroke-width='2' stroke-opacity='0.05'/%3E%3Cpath d='M0,180 C450,600 990,-240 1440,180' stroke-width='0.5' stroke-opacity='0.15'/%3E%3Cpath d='M0,200 C450,500 990,-100 1440,200' stroke-width='1.5' stroke-opacity='0.07'/%3E%3Cpath d='M0,290 C800,0 640,580 1440,290' stroke-width='1' stroke-opacity='0.1'/%3E%3Cpath d='M0,350 C200,700 1240,0 1440,350' stroke-width='2.5' stroke-opacity='0.04'/%3E%3Cpath d='M0,450 C600,200 840,700 1440,450' stroke-width='1' stroke-opacity='0.12'/%3E%3Cpath d='M0,470 C550,250 890,690 1440,470' stroke-width='0.5' stroke-opacity='0.07'/%3E%3Cpath d='M0,600 C400,1000 1040,200 1440,600' stroke-width='1.5' stroke-opacity='0.05'/%3E%3Cpath d='M0,650 C700,300 740,1000 1440,650' stroke-width='1' stroke-opacity='0.1'/%3E%3Cpath d='M0,720 C300,900 1140,540 1440,720' stroke-width='2' stroke-opacity='0.02'/%3E%3Cpath d='M0,750 C900,1000 540,500 1440,750' stroke-width='1' stroke-opacity='0.07'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23d4af37'%3E%3Cpath d='M0,200 C800,-100 640,500 1440,200' stroke-width='1.5' stroke-opacity='0.07'/%3E%3Cpath d='M0,500 C300,900 1140,100 1440,500' stroke-width='1' stroke-opacity='0.05'/%3E%3Cpath d='M0,700 C600,200 840,1200 1440,700' stroke-width='2' stroke-opacity='0.02'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
    radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
  background-size: 200px 200px, 1440px 100%, 1440px 100%, 100% 100%, 100% 100%, 100% 100%;
  z-index: -2;
  overflow: hidden;
  animation: bgAnimation 150s linear infinite;
  pointer-events: none;
}

/* Акцентное свечение */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.glow-1 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-color), transparent 70%);
  top: -10%;
  left: -10%;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

.glow-2 {
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, #fff, transparent 70%);
  bottom: 10%;
  right: -5%;
  opacity: 0.05;
  animation: glowPulse 12s ease-in-out infinite alternate-reverse;
}

.glow-3 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-color), transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
}

@keyframes glowPulse {
  from { opacity: 0.1; transform: scale(1); }
  to { opacity: 0.2; transform: scale(1.1); }
}

/* Абстрактные переплетающиеся кривые линии */
.page-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 10%;
  width: 65vw;
  height: 65vw;
  min-width: 400px;
  min-height: 400px;
  background: transparent;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-right: 2px solid rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid transparent;
  border-left: 1.5px solid transparent;
  border-radius: 30% 70% 40% 60% / 60% 30% 70% 40%;
  animation: morphBlob1 22s ease-in-out infinite alternate, rotateBlob 45s linear infinite;
  z-index: -1;
}

.page-bg::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  min-width: 300px;
  min-height: 300px;
  background: transparent;
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
  border-left: 1px solid rgba(212, 175, 55, 0.1);
  border-top: 1.5px solid transparent;
  border-right: 1px solid transparent;
  border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
  animation: morphBlob2 19s ease-in-out infinite alternate, rotateBlob 38s linear infinite reverse;
  z-index: -1;
}

.hero-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
  }
}

.hero-content {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--transition-slow) forwards;
}

@media (min-width: 992px) {
  .hero-content {
    text-align: left;
    margin: 0;
  }
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(30px);
  animation: fadeLeft 1s var(--transition-slow) forwards;
  animation-delay: 0.3s;
  aspect-ratio: 4/5;
  /* Taller aspect ratio to crop out the bottom space */
  /* Fix WebKit border-radius overflow bug during transform */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--accent-color);
  border-radius: 24px;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  /* Align to top to crop out the bottom black space */
  transition: transform var(--transition-slow);
  transform-origin: center;
}

.hero-image:hover img {
  transform: scale(1.05);
}

.hero h1 {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--accent-color);
  text-shadow: 0 0 1px var(--accent-color);
  line-height: 1.3;
}

.hero p {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-weight: 300;
}

/* Split Flows */
.flows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .flows {
    grid-template-columns: 1fr 1fr;
  }
}

.flow-card {
  background-color: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 140px;
}

.flow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.05), transparent);
  transform: translateX(-100%);
  transition: var(--transition-slow);
}

.flow-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.flow-card:hover::before {
  transform: translateX(100%);
}

.flow-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.flow-card h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 5px;
}

.flow-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  transition: var(--transition-normal);
  margin-top: 10px;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

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

.btn-outline:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

/* Path & Experience Section */
.path {
  padding: 100px 0;
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(212, 175, 55, 0.2) 20%, 
    rgba(212, 175, 55, 0.9) 45%, 
    #fff 50%, 
    rgba(212, 175, 55, 0.9) 55%, 
    rgba(212, 175, 55, 0.2) 80%, 
    transparent 100%);
  margin: 40px auto;
  max-width: 90%;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
  position: relative;
  opacity: 0.8;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff, 0 0 20px var(--accent-color), 0 0 30px var(--accent-color);
}



.path-container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
  color: var(--accent-color);
  font-family: var(--font-heading);
}

/* Education Block */
.education-list {
  list-style: none;
  position: relative;
  padding-left: 30px;
}

.education-list::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-color), transparent);
  opacity: 0.3;
}

.education-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 20px;
}

.education-item .dot {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-color);
}

.education-item p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* Awards Block */
.awards-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  font-weight: 300;
}

.awards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.award-category {
  background-color: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.award-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  opacity: 0.5;
}

.award-category:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.medal {
  font-size: 2rem;
}

.category-header h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.award-list {
  list-style: none;
}

.award-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 15px;
  position: relative;
  padding-left: 20px;
  font-weight: 300;
}

.award-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Specific Medal Colors */
.gold .medal-icon { color: #ffd700; }
.silver .medal-icon { color: #c0c0c0; }
.bronze .medal-icon { color: #cd7f32; }

.gold::before { background: #ffd700; }
.silver::before { background: #c0c0c0; }
.bronze::before { background: #cd7f32; }

/* Reveal Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Icon Styles */
.title-icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin-right: 15px;
  margin-top: -5px;
  stroke-width: 1.5;
}

.medal-icon {
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.medal-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.flow-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

/* Footer */
footer {
  padding: 30px 0 40px;
  background-color: var(--surface-color);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.footer-left .logo {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition-normal);
  font-size: 0.95rem;
  font-weight: 300;
  width: fit-content;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition-normal);
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(8px);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-unp {
  color: var(--text-secondary);
  font-size: 0.8rem;
  opacity: 0.5;
  letter-spacing: 1px;
  font-weight: 300;
  margin-top: 10px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: right;
  max-width: 500px;
}

.footer-info {
  color: var(--text-secondary);
  font-size: 0.8rem;
  opacity: 0.5;
  font-weight: 300;
  line-height: 1.6;
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.95rem;
  opacity: 0.8;
  font-weight: 300;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
  }
  
  .footer-left {
    align-items: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-links a:hover {
    transform: translateY(-3px);
  }
  
  .footer-right {
    text-align: center;
    align-items: center;
  }
}

/* Contacts Section */
.contacts {
  padding: 100px 0 60px;
  position: relative;
}

.contacts-container {
  max-width: 900px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.contact-item {
  background-color: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-normal);
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.contact-icon {
  font-size: 1.8rem;
  width: 60px;
  height: 60px;
  background-color: rgba(212, 175, 55, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 400;
  transition: var(--transition-normal);
}

.contact-item:hover .contact-value {
  color: var(--accent-color);
}


/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes morphBlob1 {
  0% {
    border-radius: 30% 70% 40% 60% / 60% 30% 70% 40%;
  }

  100% {
    border-radius: 70% 30% 60% 40% / 30% 70% 40% 60%;
  }
}

@keyframes morphBlob2 {
  0% {
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
  }

  100% {
    border-radius: 30% 70% 80% 20% / 40% 30% 70% 60%;
  }
}

@keyframes rotateBlob {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes bgAnimation {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 0 -200px, -1440px 0, 1440px 0, 0 0, 0 0, 0 0;
  }
}