html {
  scroll-behavior: smooth;
  background-color: #0a0a0a;
  background-image: url("../images/background-image.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
}
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji"; 
  color: #fff;
}

.gradient-color {
  background: linear-gradient(115deg, #0a0a0a 80%, #202020 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
}

.glass {
  backdrop-filter: blur(3px);
  border-color: #a8b9cc;
}
.ring-accent {
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.25);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.07);
  }
}

.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.btn {
  transition: transform 0.15s ease;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.ring-accent-anim {
  animation: glowPulse 2.6s ease-in-out infinite;
}
.floaty {
  animation: floaty 6s ease-in-out infinite;
}

.skill {
  --brand: #0ea5e9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
  will-change: transform, box-shadow;
}
.skill:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  border-color: color-mix(in oklab, var(--brand) 40%, transparent);
}

.skill .logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.skill .logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  transition: filter 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}
.skill:hover .logo img {
  filter: grayscale(1) contrast(1.05) brightness(0.95);
  transform: scale(1.06);
}

.skill .logo::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 18px;
  background: radial-gradient(
    120px 40px at 50% 0%,
    color-mix(in oklab, var(--brand) 18%, transparent),
    transparent
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}
.skill:hover .logo::after {
  opacity: 0.5;
}

.skill .label {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-mongo {
  --brand: #10aa50;
}
.brand-mssql {
  --brand: #cc2927;
}
.brand-c {
  --brand: #00599c;
}
.brand-cpp {
  --brand: #00599c;
}
.brand-csharp {
  --brand: #512bd4;
}
.brand-js {
  --brand: #f7df1e;
}
.brand-java {
  --brand: #007396;
}
.brand-go {
  --brand: #00add8;
}
.brand-rust {
  --brand: #000000;
}
.brand-api {
  --brand: #6ba539;
}
.brand-dotnet {
  --brand: #512bd4;
}
.brand-html {
  --brand: #e34f26;
}
.brand-css {
  --brand: #1572b6;
}
.brand-react {
  --brand: #61dafb;
}
.brand-reactnative {
  --brand: #61dafb;
}
.brand-git {
  --brand: #e24e41;
}
.code-output::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1.1em;
  margin-left: 4px;
  background: rgba(255, 255, 255, 0.35);
  animation: caretBlink 1s steps(1) infinite;
  vertical-align: -2px;
}
@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

::-webkit-scrollbar {
  width: 10px; 
}

::-webkit-scrollbar-track {
  background: #0a0a0a; 
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    #6ee7ff,
    #9ca3af
  ); 
  border-radius: 6px;
  border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #93c5fd,
    #d1d5db
  ); 
}

* {
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #0a0a0a; 
}

@layer utilities {
  :root {
    --ticker-speed: 22s;
  }

  @keyframes tickerX {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    } /* 2 track => %50 kay */
  }

  .ticker-wrap {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(24, 24, 27, 0.6);
  }

  .ticker-fade {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent,
      #000 6rem,
      #000 calc(100% - 6rem),
      transparent
    );
    mask-image: linear-gradient(
      90deg,
      transparent,
      #000 6rem,
      #000 calc(100% - 6rem),
      transparent
    );
  }

  .ticker-track {
    display: flex;
    min-width: 200%; /* iki kopya yan yana */
    animation: tickerX var(--ticker-speed) linear infinite;
    will-change: transform;
  }

  .ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0 1.25rem;
    white-space: nowrap;
    background: rgba(58, 65, 68, 0.85);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 3px rgba(67, 76, 81, 0.12);
    letter-spacing: 0.02em;
    font-weight: 700;
  }
  .ticker-dot {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: rgba(58, 65, 68, 0.85);
    box-shadow: 0 0 10px rgba(41, 47, 50, 0.35);
  }

  .ticker-wrap:hover .ticker-track {
    animation-play-state: paused;
  }

  @media (prefers-reduced-motion: reduce) {
    .ticker-track {
      animation-duration: 0.001s;
      animation-iteration-count: 1;
    }
  }
}

@media (max-width: 640px) {
  .codecard {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .codecard pre,
  .codecard code {
    font-size: 10px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .codecard pre {
    white-space: pre-wrap !important;
    word-break: break-word !important;
  }

  .codecard .code-surface {
    display: none !important; 
  }
}

@media (max-width: 640px) {
  .aspect-\[16\/9\] img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  .aspect-\[16\/9\] {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    max-width: 100%;
  }
}
