:root {
  /* Colors */
  --bg-color: #0b0b0b;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #00d4ff; /* Cyan glow */
  --accent-hover: #00b0d4;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Manrope', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* For custom cursor */
}

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

button {
  border: none;
  background: none;
  cursor: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor-follower.active {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 212, 255, 0.1);
  border-color: transparent;
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {
  .cursor, .cursor-follower {
    display: none;
  }
  body, a, button {
    cursor: auto;
  }
}

/* =========================================
   LOADING SCREEN
   ========================================= */
.loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader__logo {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.loader__bar {
  width: 200px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader__progress {
  width: 0%;
  height: 100%;
  background-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  animation: load 1.5s cubic-bezier(0.75, 0, 0.25, 1) forwards;
}

@keyframes load {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* =========================================
   NAVIGATION
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 16px 0;
  background: rgba(11, 11, 11, 0.8);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  position: relative;
  z-index: 1001;
}

.nav__logo-text {
  color: var(--accent-color);
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.nav__links {
  display: flex;
  gap: 40px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

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

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

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.nav__hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-menu__link:hover {
  color: var(--text-primary);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background-color: var(--text-primary);
  color: var(--bg-color);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn--ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: var(--glass-blur);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.5;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-size: 50px 50px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  z-index: 2;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.4;
  animation: float 10s infinite ease-in-out alternate;
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 212, 255, 0.15);
  top: 10%;
  left: 20%;
}

.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(100, 100, 255, 0.1);
  bottom: 20%;
  right: 15%;
  animation-delay: -5s;
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  backdrop-filter: var(--glass-blur);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse 2s infinite;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero__title-main {
  background: linear-gradient(to right, #fff, #a0a0a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(16px, 3vw, 24px);
  color: var(--accent-color);
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.separator {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 8px;
}

.hero__description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  gap: 16px;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}

.hero__scroll-icon {
  width: 24px;
  height: 40px;
  border: 1px solid var(--text-secondary);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--text-primary);
  border-radius: 2px;
  margin-top: 6px;
  animation: scrollWheel 2s infinite;
}

.hero__scroll-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--accent-color);
  font-weight: 600;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
}

.section-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
}

/* =========================================
   GLASS CARD (Reusable)
   ========================================= */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
  padding: var(--section-padding);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

.about__card {
  padding: 48px;
}

.about__card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.about__card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.about__card:hover .about__card-glow {
  opacity: 1;
}

.about__card-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.about__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #222, #111);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.about__avatar-letter {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
}

.about__avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
  opacity: 0.3;
  animation: spin 10s linear infinite;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.about__name {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 8px;
}

.about__role {
  color: var(--accent-color);
  font-size: 16px;
  margin-bottom: 24px;
}

.about__bio {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-secondary);
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.stat-card:hover {
  transform: translateX(-10px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-card__icon {
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: var(--transition);
}

.stat-card:hover .stat-card__icon {
  background: var(--text-primary);
  color: var(--bg-color);
}

.stat-card__label {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-card__desc {
  color: var(--text-secondary);
  font-size: 14px;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
  padding: var(--section-padding);
}

.contact__intro {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  display: flex;
  align-items: center;
  padding: 32px;
  gap: 24px;
  transition: var(--transition);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-card__body {
  flex-grow: 1;
}

.contact-card__label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.contact-card__value {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-card__arrow {
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-card:hover .contact-card__icon {
  background: var(--text-primary);
  color: var(--bg-color);
}

.contact-card:hover .contact-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.contact-card--telegram:hover {
  border-color: rgba(42, 171, 238, 0.5);
  box-shadow: 0 10px 30px rgba(42, 171, 238, 0.1);
}

.contact-card--telegram:hover .contact-card__icon {
  background: #2AABEE;
  color: white;
}

.contact-card--instagram:hover {
  border-color: rgba(225, 48, 108, 0.5);
  box-shadow: 0 10px 30px rgba(225, 48, 108, 0.1);
}

.contact-card--instagram:hover .contact-card__icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.contact__cta {
  display: flex;
  gap: 16px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer__dot {
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

/* =========================================
   ANIMATIONS & UTILS
   ========================================= */
@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-30px) scale(1.05); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: var(--delay, 0s);
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Selection */
::selection {
  background: var(--accent-color);
  color: #fff;
}

/* =========================================
   RESPONSIVE (Tablet)
   ========================================= */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about__tags {
    justify-content: center;
  }
}

/* =========================================
   RESPONSIVE (Mobile)
   ========================================= */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__hamburger.active .nav__hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

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

  .nav__hamburger.active .nav__hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .br-desktop {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

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

  .contact__cta {
    flex-direction: column;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .footer__dot {
    display: none;
  }
}
