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

:root {
  --background: oklch(0.15 0.02 270);
  --foreground: oklch(0.95 0.01 270);
  --card: oklch(0.2 0.03 270);
  --card-foreground: oklch(0.95 0.01 270);
  --primary: oklch(0.6 0.18 264);
  --primary-foreground: oklch(0.15 0.02 270);
  --secondary: oklch(0.25 0.05 270);
  --secondary-foreground: oklch(0.9 0.02 270);
  --muted: oklch(0.25 0.05 270);
  --muted-foreground: oklch(0.65 0.05 270);
  --accent: oklch(0.25 0.05 270);
  --accent-foreground: oklch(0.9 0.02 270);
  --destructive: oklch(0.6 0.22 25);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.6 0.18 264);
  --radius: 0.75rem;
}

html {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.logo-icon {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
}

.logo-icon svg {
  height: 1rem;
  width: 1rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: color 0.15s;
  color: var(--muted-foreground);
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  inset-inline: 0.75rem;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  padding: 0.5rem;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
}

.menu-btn:hover {
  color: var(--foreground);
  background: var(--accent);
}

.menu-btn svg {
  height: 1.25rem;
  width: 1.25rem;
}

/* ===== Mobile Menu ===== */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
}

.mobile-overlay.open {
  display: block;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

.mobile-panel {
  position: fixed;
  inset-block: 0;
  right: 0;
  width: 18rem;
  max-width: 80vw;
  border-left: 1px solid var(--border);
  background: var(--background);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-panel-header span {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
  color: var(--muted-foreground);
}

.mobile-nav-link:hover {
  color: var(--foreground);
  background: var(--accent);
}

.mobile-nav-link.active {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===== Hero Background ===== */

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ===== Decorative Blobs ===== */
.blob-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.blob-1 {
  position: absolute;
  left: -8rem;
  top: -8rem;
  height: 24rem;
  width: 24rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  filter: blur(64px);
}

.blob-2 {
  position: absolute;
  bottom: -8rem;
  right: -8rem;
  height: 24rem;
  width: 24rem;
  border-radius: 50%;
  background: color-mix(in srgb, oklch(0.55 0.15 200) 5%, transparent);
  filter: blur(64px);
}

.float-dot {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.float-dot-1 {
  left: 25%;
  top: 33%;
  height: 1rem;
  width: 1rem;
  background: color-mix(in srgb, var(--primary) 30%, transparent);
  animation: float 6s ease-in-out infinite;
}

.float-dot-2 {
  right: 33%;
  top: 25%;
  height: 0.75rem;
  width: 0.75rem;
  background: color-mix(in srgb, oklch(0.7 0.2 190) 30%, transparent);
  animation: float 6s ease-in-out 2s infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== Neon Effects ===== */
@keyframes neon-pulse {
  0%,
  100% {
    text-shadow:
      0 0 4px oklch(0.7 0.2 190),
      0 0 8px oklch(0.7 0.2 190),
      0 0 16px oklch(0.6 0.18 264),
      0 0 32px oklch(0.5 0.18 264 / 0.5);
  }
  50% {
    text-shadow:
      0 0 6px oklch(0.7 0.2 190),
      0 0 12px oklch(0.7 0.2 190),
      0 0 24px oklch(0.6 0.18 264),
      0 0 48px oklch(0.5 0.18 264 / 0.7);
  }
}

.neon-title {
  animation: neon-pulse 2.5s ease-in-out infinite alternate;
}

@keyframes glow-line {
  0%,
  100% {
    box-shadow:
      0 0 6px oklch(0.6 0.18 264),
      0 0 12px oklch(0.6 0.18 264 / 0.5);
  }
  50% {
    box-shadow:
      0 0 12px oklch(0.7 0.2 190),
      0 0 24px oklch(0.7 0.2 190 / 0.5);
  }
}

.neon-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    oklch(0.6 0.18 264),
    oklch(0.7 0.2 190),
    transparent
  );
  animation: glow-line 3s ease-in-out infinite alternate;
}

@keyframes glow-ring {
  0%,
  100% {
    box-shadow:
      0 0 8px oklch(0.6 0.18 264 / 0.4),
      0 0 16px oklch(0.6 0.18 264 / 0.2);
  }
  50% {
    box-shadow:
      0 0 12px oklch(0.7 0.2 190 / 0.5),
      0 0 24px oklch(0.6 0.18 264 / 0.3);
  }
}

.neon-ring {
  animation: glow-ring 2s ease-in-out infinite alternate;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: slideInBottom 0.7s ease-out;
}

/* ===== Page Layout ===== */
.page-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 1rem;
}

.page-section.full-height {
  min-height: calc(100vh - 9rem);
}

.page-content {
  position: relative;
  margin: 0 auto;
  animation: slideInBottom 0.7s ease-out;
}

.page-content.wide {
  max-width: 64rem;
}

.page-content.narrow {
  max-width: 48rem;
}

.page-content.extra-wide {
  max-width: 80rem;
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 70%, transparent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-divider {
  margin: 0.75rem auto 1rem;
  width: 12rem;
}

.section-subtitle {
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
}

/* ===== Home Hero ===== */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 9rem);
  text-align: center;
  gap: 2rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-role {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 70%, transparent);
}

.hero-role-sub {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted-foreground) 60%, transparent);
}

.hero-name {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero-description {
  max-width: 36rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ===== Tech Stack ===== */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--primary) 80%, transparent);
  transition:
    border-color 0.15s,
    color 0.15s;
}

.tech-badge:hover {
  border-color: color-mix(in srgb, var(--primary) 60%, transparent);
  color: var(--primary);
}

.tech-badge svg {
  height: 0.875rem;
  width: 0.875rem;
  flex-shrink: 0;
}

/* ===== Buttons ===== */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn svg {
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
}

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

.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-outline {
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

/* ===== About Page ===== */
.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.block-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.block-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.block-icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  color: var(--primary);
}

.block-icon svg {
  height: 1.5rem;
  width: 1.5rem;
}

.block-title-group h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.block-title-group .neon-divider {
  margin-top: 0.25rem;
  width: 6rem;
}

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

.skill-card {
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  background: color-mix(in srgb, var(--card) 50%, transparent);
  padding: 1.25rem;
  transition: all 0.3s;
}

.skill-card:hover {
  background: color-mix(in srgb, var(--card) 80%, transparent);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.skill-icon {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.skill-icon svg {
  height: 1.25rem;
  width: 1.25rem;
}

.skill-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.skill-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ===== Projects Page ===== */
.projects-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  background: color-mix(in srgb, var(--card) 50%, transparent);
  padding: 1.5rem;
  transition: all 0.3s;
}

.project-card:hover {
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.project-desc {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.project-stack span {
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--primary) 80%, transparent);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
}

.project-link svg {
  height: 0.875rem;
  width: 0.875rem;
  flex-shrink: 0;
}

.project-link-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.project-link-primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, black);
}

.project-link-outline {
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  color: var(--primary);
}

.project-link-outline:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

/* ===== Contacts Page ===== */
.contacts-grid {
  display: grid;
  gap: 2.5rem;
}

.contacts-form-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacts-social-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===== Form ===== */
.contacts-form {
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  background: color-mix(in srgb, var(--card) 50%, transparent);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input {
  display: flex;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--input);
  background: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
  font-family: inherit;
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

.form-input:focus {
  box-shadow: 0 0 0 2px var(--ring);
  border-color: var(--ring);
}

.form-input.error {
  border-color: var(--destructive);
}

.form-textarea {
  resize: vertical;
  min-height: 6.25rem;
}

.form-error {
  font-size: 0.75rem;
  color: var(--destructive);
}

.form-submit {
  width: 100%;
}

/* ===== Social Card ===== */
.social-card {
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  background: color-mix(in srgb, var(--card) 50%, transparent);
  padding: 1.5rem;
}

.social-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: all 0.15s;
  text-decoration: none;
}

.social-link:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.social-link svg {
  height: 1.25rem;
  width: 1.25rem;
  flex-shrink: 0;
}

.social-link .link-arrow {
  margin-left: auto;
  height: 0.875rem;
  width: 0.875rem;
  opacity: 0.5;
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .page-section {
    padding: 4rem 1.5rem;
  }

  .hero-name {
    font-size: 3.75rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-actions {
    flex-direction: row;
    gap: 1rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-btn {
    display: none !important;
  }

  .contacts-grid {
    grid-template-columns: 3fr 2fr;
  }
}

@media (min-width: 1024px) {
  .hero-name {
    font-size: 4.5rem;
  }
}

@media (max-width: 767px) {
  .nav-desktop {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

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

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




#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6) contrast(1.1) hue-rotate( 197deg);
}

.content {
  position: fixed;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #f1f1f1;
  width: 100%;
  padding: 20px;
}
