@import url('https://fonts.googleapis.com/css2?family=Parkinsans:wght@300..800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: #d7d1f3;
  min-height: 100vh;
  /* font-family: 'Poppins', sans-serif; */
  font-family: "Parkinsans", serif;
}

.card {
  --font-color: #323232;
  --font-color-sub: #666;
  --bg-color: #fff;
  --main-color: #323232;
  width: 100%;
  max-width: 300px;
  height: auto;
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  box-shadow: 4px 4px var(--main-color);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 0 auto;
}

.card-photo {
  display: block;
  content: '';
  box-sizing: border-box;
  width: 150px;
  height: 150px;
  background: url('mypic1.png') no-repeat center center;
  background-size: cover;
  border-radius: 50%;
  margin-bottom: 20px;
}

.card-title {
  text-align: center;
  color: var(--font-color);
  font-size: 20px;
  font-weight: 400;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin-bottom: 10px;
}

.card-title span {
  font-size: 15px;
  color: var(--font-color-sub);
}

.card-socials {
  display: flex;
  margin-top: 20px;
  gap: 20px;
  justify-content: center;
}

.card-socials-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.card-socials-btn svg {
  width: 100%;
  height: 100%;
  fill: var(--main-color);
}

.card:hover > .card-socials {
  opacity: 1;
}

.card-socials-btn:hover {
  transform: translateY(-5px);
  transition: all 0.15s;
}

.card-photo:hover {
  transition: 0.3s;
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .card {
    max-width: 400px;
  }

  .card-photo {
    width: 200px;
    height: 200px;
  }

  .card-title {
    font-size: 24px;
  }

  .card-title span {
    font-size: 18px;
  }

  .card-socials-btn {
    width: 35px;
    height: 35px;
  }
}

/* index.html */
.headingcolor {
  background-color: rgb(226, 203, 126);
}

/* resume.html */
.marginclass{
  margin-top: 20px;
}

/* project.html */

/* ✅ Ensure videos are perfectly centered */
.video-container, .video-container-yt {
  position: relative;
  width: 100%;
  max-width: 800px; /* Prevents too wide on large screens */
  margin: 0 auto; /* Centering */
  height: 0;
  overflow: hidden;
}

/* ✅ Fix for 9:16 Aspect Ratio */
.video-container {
  padding-bottom: 177.77%;
}

/* ✅ Fix for 16:9 Aspect Ratio */
.video-container-yt {
  padding-bottom: 56.25%;
}

/* ✅ Make iframe always fill the container */
.video-container iframe, .video-container-yt iframe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%); /* ✅ This ensures perfect centering */
  width: 140%;
  height: 100%;
  border: 0;
}

.video-container-yt iframe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%); /* ✅ This ensures perfect centering */
  width: 100%;
  height: 100%;
  border: 0;
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item img {
    transition: .5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(204, 179, 34, 0.9);
    /* background: rgba(98, 34, 204, .9); */
    transition: .5s;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}


/* client logos */

/* Client Logo Section */
.client-logos {
    overflow: hidden;
    background: #d7d1f3;;
    /* adjust to match site background */
    padding: 20px 0;
    white-space: nowrap;
    position: relative;
}

.logos-slide {
    display: inline-flex;
    /* horizontal row */
    align-items: center;
    gap: 5rem;
    /* spacing between logos */
    animation: scroll 25s linear infinite;
}

.logos-slide img {
    height: 100px;
    /* default for desktop */
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logos-slide img:hover {
    opacity: 0.7;
}

/* Infinite scroll animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logos-slide img {
        height: 80px;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .logos-slide img {
        height: 60px;
        gap: 1.5rem;
    }
}



/* ✅ Fix layout at screen width ≤ 639px */
@media (max-width: 639px) {
  .flex {
    flex-direction: column;
    align-items: center; /* ✅ Ensures content is centered */
  }

  /* Make video sections take full width */
  .xl\:w-1\/4, .md\:w-1\/2, .sm\:w-full, .xl\:w-1\/2 {
    width: 100%;
    max-width: 400px; /* ✅ Adjust for small screens */
  }

  /* Reduce padding for a cleaner look */
  .p-4 {
    padding: 5px;
  }
}

/* fonts */
.mango-heading {
    font-family: 'Oswald', sans-serif;
}

.glacial-heading {
    font-family: 'Glacial Indifference', sans-serif;
}

/* montserrat font  */
.font-montserrat {
    font-family: 'Montserrat', sans-serif !important;
}

/* poppins font */
.font-poppins {
    font-family: 'Poppins', sans-serif !important;
}

