/* ============================================
   UZXEDITS PORTFOLIO - CLEAN & MINIMAL
   Sky Blue • Rose Magenta • Chartreuse
   ============================================ */

/* ============================================
   1. CSS VARIABLES & COLOR SCHEME
   ============================================ */
:root {
  /* Triadic Colors - Subtle */
  --sky-blue: #4FC3F7;
  --sky-blue-light: #81D4FA;
  --sky-blue-dark: #29B6F6;
  
  --rose-magenta: #EC407A;
  --rose-magenta-light: #F48FB1;
  --rose-magenta-dark: #E91E63;
  
  --chartreuse: #9CCC65;
  --chartreuse-light: #AED581;
  --chartreuse-dark: #8BC34A;
  
  /* Background & Surface Colors */
  --bg-primary: #0a0e1a;
  --bg-secondary: #121725;
  --bg-tertiary: #1a1f2e;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  
  /* Text Colors */
  --text-primary: #e8f1f8;
  --text-secondary: #b8c7d9;
  --text-muted: #7a8ba3;
  
  /* Spacing */
  --header-height: 70px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --section-gap: 60px;
  
  /* Effects - Minimal */
  --card-shadow: 0 4px 16px rgba(2, 6, 23, 0.5);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg-primary), #050812 120%);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   3. LAYOUT CONTAINERS
   ============================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

main {
  margin-top: calc(var(--header-height) + var(--safe-top));
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 195, 247, 0.3) transparent;
}

main::-webkit-scrollbar {
  width: 8px;
}

main::-webkit-scrollbar-track {
  background: transparent;
}

main::-webkit-scrollbar-thumb {
  background: rgba(79, 195, 247, 0.3);
  border-radius: 4px;
}

section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--section-gap) 0;
  text-align: center;
}

section + section {
  margin-top: 0;
  padding-top: 40px;
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 40;
  border-bottom: 1px solid rgba(79, 195, 247, 0.1);
  transition: var(--transition);
}

.site-header:hover {
  border-bottom-color: rgba(79, 195, 247, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  padding: 0 24px;
  position: relative;
  text-align: left;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--sky-blue);
  background: rgba(79, 195, 247, 0.08);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 8px;
  color: var(--sky-blue);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: rgba(79, 195, 247, 0.1);
}

/* ============================================
   5. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--sky-blue);
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(79, 195, 247, 0.2);
}

.btn:hover {
  background: var(--sky-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--rose-magenta);
  color: var(--rose-magenta);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(236, 64, 122, 0.08);
  border-color: var(--rose-magenta-light);
}

/* ============================================
   6. HERO SECTION
   ============================================ */
.hero {
  height: 100vh;
  padding: 40px 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-brand {
  position: absolute;
  top: 100px;
  left: 40px;
  z-index: 10;
  text-align: left;
}

.hero-logo {
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
  color: var(--sky-blue);
  transition: var(--transition);
}

.logo-uz {
  color: var(--sky-blue);
}

.logo-x {
  color: var(--rose-magenta);
  font-size: 0.7em;
  vertical-align: middle;
}

.logo-edits {
  color: var(--chartreuse);
}

.blink {
  color: var(--rose-magenta);
}

.hero-tagline {
  max-width: 420px;
  margin: 15px 0 20px 0;
  padding: 12px 20px;
  background: rgba(79, 195, 247, 0.08);
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-primary);
  transition: var(--transition);
}

.hero-tagline::before {
  content: '🎬';
  margin-right: 8px;
}

.hero-tagline:hover {
  border-color: var(--sky-blue);
}

.tagline-pro {
  color: var(--rose-magenta-light);
  font-weight: 600;
}

.hero-description {
  max-width: 480px;
  margin: 15px 0 25px 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

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

/* ============================================
   7. TIMELINE
   ============================================ */
.video-timeline {
  position: absolute;
  top: 100px;
  left: 550px;
  right: 300px;
  width: calc(100% - 590px);
  height: 350px;
  background: #0d0d0d;
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  padding: 8px 12px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(79, 195, 247, 0.1);
}

.timeline-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.timeline-btn {
  padding: 5px 10px;
  background: #2a2a2a;
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 4px;
  color: var(--sky-blue);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.timeline-btn:hover {
  background: #3a3a3a;
}

.timeline-btn.play-btn {
  background: var(--chartreuse);
  color: #000;
  border-color: var(--chartreuse);
}

.timeline-btn.playing {
  background: var(--rose-magenta);
  color: #fff;
  border-color: var(--rose-magenta);
}

.timeline-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.timeline-time {
  padding: 3px 8px;
  background: #000;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.75rem;
  color: var(--chartreuse);
  border: 1px solid rgba(156, 204, 101, 0.2);
}

.timeline-zoom {
  font-size: 0.75rem;
  color: var(--sky-blue);
  font-weight: 600;
}

.timeline-ruler {
  padding: 6px 12px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(79, 195, 247, 0.1);
}

.ruler-marks {
  display: flex;
  justify-content: space-between;
}

.ruler-mark {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.timeline-tracks {
  background: #0d0d0d;
}

.timeline-track {
  display: flex;
  min-height: 56px;
  border-bottom: 1px solid rgba(79, 195, 247, 0.05);
  transition: var(--transition);
}

.timeline-track:hover {
  background: rgba(79, 195, 247, 0.02);
}

.track-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  padding: 6px 4px;
  gap: 4px;
  background: #1a1a1a;
  border-right: 1px solid rgba(79, 195, 247, 0.1);
}

.track-icon {
  font-size: 0.9rem;
}

.track-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.track-controls {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.track-toggle {
  font-size: 0.7rem;
  opacity: 0.6;
  cursor: pointer;
  transition: var(--transition);
}

.track-toggle:hover {
  opacity: 1;
}

.track-content {
  flex: 1;
  position: relative;
  padding: 8px 0;
}

.clip {
  position: absolute;
  height: 40px;
  border-radius: 4px;
  cursor: grab;
  transition: var(--transition);
}

.video-clip {
  background: var(--sky-blue);
  border: 1px solid var(--sky-blue-dark);
}

.audio-clip {
  background: var(--chartreuse);
  border: 1px solid var(--chartreuse-dark);
}

.effect-clip {
  background: var(--rose-magenta);
  border: 1px solid var(--rose-magenta-dark);
}

.clip-content {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #000;
}

.editable-clip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.editable-clip:active {
  cursor: grabbing;
}

.audio-waveform {
  display: flex;
  align-items: end;
  gap: 1px;
  height: 100%;
  padding: 4px;
}

.waveform-bar {
  width: 2px;
  min-height: 20%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1px;
}

.timeline-playhead {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--rose-magenta);
  z-index: 10;
}

.timeline-playhead::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -6px;
  width: 14px;
  height: 16px;
  background: var(--rose-magenta);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.draggable-playhead {
  cursor: ew-resize;
}

/* ============================================
   8. ABOUT SECTION
   ============================================ */
.about-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 48px 32px;
  background: var(--bg-secondary);
  border: 1px solid rgba(79, 195, 247, 0.15);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.about-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--sky-blue);
}

.title-accent {
  color: var(--chartreuse);
}

.section-subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.about-card,
.skills-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid rgba(79, 195, 247, 0.1);
  border-radius: 8px;
  text-align: left;
  transition: var(--transition);
}

.about-card:hover,
.skills-card:hover {
  border-color: rgba(79, 195, 247, 0.3);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.about-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  color: var(--sky-blue);
}

.about-card p {
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat {
  padding: 16px;
  background: rgba(79, 195, 247, 0.05);
  border: 1px solid rgba(79, 195, 247, 0.15);
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

.stat:hover {
  border-color: rgba(79, 195, 247, 0.3);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--chartreuse);
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.skills-card h4 {
  margin: 0 0 16px 0;
  font-size: 1.2rem;
  color: var(--chartreuse);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 14px;
  background: rgba(156, 204, 101, 0.1);
  border: 1px solid var(--chartreuse);
  border-radius: 16px;
  color: var(--chartreuse);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.skill-tag:hover {
  background: rgba(156, 204, 101, 0.15);
}

/* ============================================
   9. VIDEO SLIDESHOW
   ============================================ */
.video-slideshow-section {
  margin: 40px 0 0 0;
  padding: 0 0 40px 0;
  width: 100%;
}

.slideshow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto 30px;
  padding: 0 40px;
}

.slideshow-header h3 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sky-blue);
}

.slide-counter {
  padding: 8px 16px;
  background: rgba(156, 204, 101, 0.1);
  border: 1px solid var(--chartreuse);
  border-radius: 20px;
  color: var(--chartreuse);
  font-size: 0.9rem;
  font-weight: 600;
}

.video-slideshow-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-slides {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-slide {
  position: absolute;
  width: 100%;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.video-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.video-card {
  width: 100%;
  max-width: 900px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-card:hover {
  border-color: var(--sky-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.video-card video {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 8px;
  object-fit: cover;
}

.video-card video.portrait {
  object-fit: contain;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 195, 247, 0.1);
  border: 1px solid var(--sky-blue);
  border-radius: 50%;
  color: var(--sky-blue);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.slide-nav:hover {
  background: rgba(79, 195, 247, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.prev-slide { left: 30px; }
.next-slide { right: 30px; }

.slide-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.indicator:hover {
  background: rgba(79, 195, 247, 0.5);
}

.indicator.active {
  background: var(--sky-blue);
  border-color: var(--sky-blue);
}

/* ============================================
   10. CONTACT SECTION
   ============================================ */
.contact-mini {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(79, 195, 247, 0.15);
  box-shadow: var(--card-shadow);
}

.contact-mini-title {
  margin: 0 0 12px 0;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--sky-blue);
}

.contact-mini-subtitle {
  text-align: center;
  margin: 0 0 32px 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.contact-mini-inner {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 28px;
  background: var(--sky-blue);
  border: 1px solid var(--sky-blue);
  border-radius: 8px;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(79, 195, 247, 0.2);
}

.contact-chip .icon {
  font-size: 1.2rem;
}

.contact-chip:hover {
  background: var(--sky-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.contact-chip.ig {
  background: var(--rose-magenta);
  border-color: var(--rose-magenta);
  color: #fff;
  box-shadow: 0 2px 8px rgba(236, 64, 122, 0.2);
}

.contact-chip.ig:hover {
  background: var(--rose-magenta-light);
  box-shadow: 0 4px 12px rgba(236, 64, 122, 0.3);
}

.contact-chip.mail {
  background: var(--chartreuse);
  border-color: var(--chartreuse);
  color: #000;
  box-shadow: 0 2px 8px rgba(156, 204, 101, 0.2);
}

.contact-chip.mail:hover {
  background: var(--chartreuse-light);
  box-shadow: 0 4px 12px rgba(156, 204, 101, 0.3);
}

/* ============================================
   11. FOOTER
   ============================================ */
.site-footer {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(79, 195, 247, 0.1);
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.social a {
  margin-left: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  padding: 6px 10px;
  border-radius: 6px;
}

.social a:hover {
  color: var(--sky-blue);
  background: rgba(79, 195, 247, 0.08);
}

/* ============================================
   12. FORMS
   ============================================ */
form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 12px 16px;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 8px;
  color: inherit;
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: var(--sky-blue);
  outline: none;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   13. UTILITIES
   ============================================ */
.card {
  max-width: 900px;
  margin: 12px auto;
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid rgba(79, 195, 247, 0.15);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --section-gap: 40px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 60px;
  }
  
  .hero-logo { font-size: 3rem; }
  .hero-brand { top: 80px; left: 20px; }
  .video-timeline { display: none; }
  .section-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .slideshow-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + var(--safe-top));
    right: 16px;
    left: 16px;
    padding: 12px;
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 8px;
    flex-direction: column;
    gap: 8px;
  }
  
  .site-header.open .main-nav {
    display: flex;
  }
  
  .hero-logo { font-size: 2.2rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
}

/* ============================================
   15. MOBILE OPTIMIZATIONS
   ============================================ */

@supports (-webkit-touch-callout: none) {
  body {
    -webkit-tap-highlight-color: transparent;
  }
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select,
  textarea,
  input {
    font-size: 16px !important;
  }
}

@supports (-webkit-appearance: none) {
  input[type="text"],
  input[type="email"],
  textarea {
    -webkit-appearance: none;
  }
}