@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

:root {
    --background-color: #0B132B;
    --white-color: #FFFFFF;
    --yellow-color: #F9E900;
    --darkblue-color: #171738;
    --dimgray-color: #637074;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

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

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    color: var(--white-color);
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.1) 1px, 
        transparent 1px
    );
    background-position: 50% 50%;
    background-size: 1.1rem 1.1rem;
    min-height: 100vh;
    position: relative;
    padding-top: 80px;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5rem;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;  
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

.header-actions {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.user-profile {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
}

.header .user-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.header .user-info p {
    font-size: .8rem;
    font-weight: 400;
    background-color: var(--yellow-color);
    color: var(--darkblue-color);
    padding: 0.1rem 0.3rem;
    border-radius: 0.1rem;
}

.btn-primary {
    background-color: var(--yellow-color);
    color: var(--darkblue-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: inherit;
    display: inline-block;
    min-width: 100px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1002;
}

.btn-primary:hover {
    background-color: var(--white-color);
    color: var(--darkblue-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.2);
}

.hero {
    padding: 5rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 600;
    line-height: 1;
    padding: 0 1rem;
    margin: 0 auto;
    max-width: 1200px;
}

.hero p {
    font-size: 1rem;
    font-weight: 100;
    margin: 1rem auto;
    padding: 0 1rem;
    max-width: 900px;
}

.btn-hero {
    background: linear-gradient(333deg,rgba(249, 233, 0, 1) 0%, rgba(255, 255, 255, 1) 61%);
    color: var(--darkblue-color);
    margin-top: 1rem;
    padding: .8rem 1.5rem;
    border: none;
    border-radius: 3rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    display: inline-block;
}

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

.btn-talk {
    background: transparent;
    color: var(--white-color);
    border: 2px solid var(--yellow-color);
    margin-left: 1rem;
}

.btn-talk:hover {
    background: var(--yellow-color);
    color: var(--darkblue-color);
}

.hero-yellow-circle {
    width: 1000px;
    height: 1000px;
    background-color: var(--yellow-color) ;
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: -800px;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.hero-container {
    margin-bottom: 10rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-profile {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem auto;
    border: 3px solid var(--yellow-color);
    box-shadow: 0 0 30px rgba(249, 233, 0, 0.15);
}

.hero-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tech Stack scroll to the left */

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

.wrapper {
  width: 90%;
  max-width: 1536px;
  margin-inline: auto;
  position: relative;
  height: 100px;
  margin-top: 1rem;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
  will-change: transform;
  transform: translateZ(0);
}

@keyframes scrollLeft {
    to {
        left: -200px;
    }
    }


.item {
  width: 200px;
  height: 100%;
  position: absolute;
  left: max(calc(200px * 11), 100%);
  animation-name: scrollLeft;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  border-radius: 1rem;
  will-change: transform;
  transform: translateZ(0);
}


.item1 {
  animation-delay: calc(30s / 15 * (15 - 1) * -1);
}

.item2 {
  animation-delay: calc(30s / 15 * (15 - 2) * -1);
}

.item3 {
  animation-delay: calc(30s / 15 * (15 - 3) * -1);
}

.item4 {
  animation-delay: calc(30s / 15 * (15 - 4) * -1);
}

.item5 {
  animation-delay: calc(30s / 15 * (15 - 5) * -1);
}

.item6 {
  animation-delay: calc(30s / 15 * (15 - 6) * -1);
}

.item7 {
  animation-delay: calc(30s / 15 * (15 - 7) * -1);
}

.item8 {
  animation-delay: calc(30s / 15 * (15 - 8) * -1);
}

.item9 {
  animation-delay: calc(30s / 15 * (15 - 9) * -1);
}

.item10 {
  animation-delay: calc(30s / 15 * (15 - 10) * -1);
}

.item11 {
  animation-delay: calc(30s / 15 * (15 - 11) * -1);
}

.item12 {
  animation-delay: calc(30s / 15 * (15 - 12) * -1);
}

.item13 {
  animation-delay: calc(30s / 15 * (15 - 13) * -1);
}

.item14 {
    animation-delay: calc(30s / 15 * (15 - 14) * -1);
}

.item15 {
    animation-delay: calc(30s / 15 * (15 - 15) * -1);
}

section .wrapper img {
    width: 90px;
    height: 90px;
    border-radius: 5px;
  }


/* Add performance optimizations for animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
