
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
button {
  color: inherit;
}
button, [role="button"] {
  cursor: pointer;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 1em;
}
img,
svg {
  display: block;
}
img,
video {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

.navbar .nav-links a {
  text-decoration: none;
  /* Add any other styles for the links */
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.hero {
  height: 100vh;
  background-image: url("./Me.svg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.herocontainer {
  padding: 24px;
  text-align: center;
}

.heading {
  font-size: 130px;
  font-weight: 800;
  background: #ffffff; /* Gradient from black to white */
  -webkit-background-clip: text; /* Ensures the gradient applies to the text */
  color: transparent;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.design {
  font-size: 150px;
  font-weight: 800;
  background: linear-gradient(to right, rgb(0, 153, 255), rgb(97, 23, 255)); /* Gradient from black to white */
  -webkit-background-clip: text; /* Ensures the gradient applies to the text */
  color: transparent;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.heading::before {
  content: ''; 
  position: absolute;
  top: -2px; /* Small top border */
  left: -2px; /* Small left border */
  right: -2px; /* Small right border */
  bottom: -2px; /* Small bottom border */
  background: white; /* Border color */
  z-index: -1;
}

.description {
  font-size: 1.25rem;
  color: #ffffff;
  max-width: 640px;
  margin: 0 auto;
}


/* Navbar styles */
.navbar {
  width: 100%;
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 0 1rem;
  position: fixed;
  z-index: 40;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px 24px;
}

.navcontainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  margin-left: 100px;
}

.nav-links {
  display: flex;
  gap: 5rem;
  backdrop-filter: blur(3px);
  box-sizing: border-box;
  padding: 9px;
  border-radius: 15px;
  overflow: hidden;
  gap: 250px;
  margin-left: 500px;
}

.nav-button {
  text-transform: capitalize;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-button:hover {
  color: #1e90ff; /* Hover color for the links */
}

/* Navbar styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px 24px;
}

.navcontainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ----------------------------work section start------------------------*/
.work-section {
  padding: 80px 0;
  background-color: black;
}

.container {
  width: 90%;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 48px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.project-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.category {
  font-size: 0.875rem;
  color: #1e90ff;
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  margin-bottom: 8px;
}

.project-description {
  color: #d1d1d1;
}
/* -------------skills section -------------*/
.skills-section {
  padding: 80px 0;
  background-color: rgb(0, 0, 0); /* Semi-transparent black background */
}

.skillscontainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skills-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 40px;
  text-align: center;
}

.skills-grid {
  display: flex; /* Use flexbox for centering */
  justify-content: center; /* Center the skill cards */
  flex-wrap: wrap; /* Allow wrapping of cards */
  gap: 32px; /* Space between cards */
}

.skill-card {
  background-color: rgb(28, 117, 251);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease-in-out;
  /* Set a default width for larger screens */
  width: 250px; /* Default width for larger screens */
}

.skill-card:hover {
  background-color: rgb(64, 115, 199);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.skill-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 8px;
}

.skill-description {
  color: #b0b0b0;
  font-size: 1rem;
}

/* Contact.css */

.icon img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.icon:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.contact-section {
  padding: 5rem 2rem;
  background-color: black;
  color: white;
  text-align: center;
}

.contactcontainer {
  max-width: 800px;
  margin: 0 auto;
}

.content .title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.content .description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.icon {
  font-size: 2rem;
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

.icon:hover {
  color: #1e90ff;
}

.form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.input {
  width: 100%;
  padding: 0.8rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #555;
  color: white;
  border-radius: 5px;
  font-size: 1rem;
}

.textarea {
  resize: none;
}

.submit-button {
  width: 100%;
  padding: 0.8rem;
  background-color: #1e90ff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #0077cc;
}

/* Responsive text sizes */
@media (max-width: 600px) {
  .heading {
    font-size: 80px; /* Smaller heading for mobile */
  }

  .description {
    font-size: 1rem; /* Smaller description for mobile */
  }

  .section-title {
    font-size: 2rem; /* Smaller section title for mobile */
  }

  .skills-title {
    font-size: 2rem; /* Smaller skills title for mobile */
  }

  .skill-name {
    font-size: 1.2rem; /* Smaller skill name for mobile */
  }

  .content .title {
    font-size: 2rem; /* Smaller contact title for mobile */
  }

  .content .description {
    font-size: 1rem; /* Smaller contact description for mobile */
  }
}

@media (min-width: 601px) and (max-width: 768px) {
  .heading {
    font-size: 100px; /* Medium heading for tablets */
  }

  .description {
    font-size: 1.1rem; /* Medium description for tablets */
  }

  .section-title {
    font-size: 2.2rem; /* Medium section title for tablets */
  }

  .skills-title {
    font-size: 2.2rem; /* Medium skills title for tablets */
  }

  .skill-name {
    font-size: 1.4rem; /* Medium skill name for tablets */
  }

  .content .title {
    font-size: 2.2rem; /* Medium contact title for tablets */
  }

  .content .description {
    font-size: 1.1rem; /* Medium contact description for tablets */
  }
}

@media (min-width: 769px) {
  .heading {
    font-size: 150px; /* Original heading for larger screens */
  }

  .description {
    font-size: 1.25rem; /* Original description for larger screens */
  }

  .section-title {
    font-size: 2.5rem; /* Original section title for larger screens */
  }

  .skills-title {
    font-size: 2.5rem; /* Original skills title for larger screens */
  }

  .skill-name {
    font-size: 1.5rem; /* Original skill name for larger screens */
  }

  .content .title {
    font-size: 2.5rem; /* Original contact title for larger screens */
  }

  .content .description {
    font-size: 1.2rem; /* Original contact description for larger screens */
  }
}

/* Responsive adjustments for skill cards */
@media (max-width: 200px) {
  .skill-card {
    width: 90%; /* Smaller width for mobile */
    padding: 16px; /* Smaller padding for mobile */
  }

  .skill-name {
    font-size: 1.2rem; /* Smaller skill name for mobile */
  }

  .skill-description {
    font-size: 0.9rem; /* Smaller skill description for mobile */
  }
}

@media (min-width: 601px) and (max-width: 768px) {
  .skill-card {
    width: 80%; /* Slightly smaller width for tablets */
    padding: 20px; /* Adjust padding for tablets */
  }

  .skill-name {
    font-size: 1.4rem; /* Medium skill name for tablets */
  }

  .skill-description {
    font-size: 1rem; /* Medium skill description for tablets */
  }
}

@media (min-width: 769px) {
  .skill-card {
    width: 250px; /* Original width for larger screens */
    padding: 24px; /* Original padding for larger screens */
  }

  .skill-name {
    font-size: 1.5rem; /* Original skill name for larger screens */
  }

  .skill-description {
    font-size: 1rem; /* Original skill description for larger screens */
  }
}

@keyframes appear {
  from{
      opacity: 0;
      scale: 0.5;
  }
  to{
      opacity: 1;
      scale: 1;
  }
}

.skill-card, .skills-title, .container, .content {
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

/* animated text */

.animated-text{
  font-size: 130px;
  font-weight: 800;
  min-width: 280px;
}

.animated-text span{
  position: relative;
}

.animated-text span::before{
  content: "Youtuber";
  color: #1e90ff;
  animation: words 20s infinite;
}

.animated-text span::after{
  content: "";
  position: absolute;
  width: calc(110% + 8px);
  height: 110%;
  background-color: rgba(23, 24, 25, 1);
  border-left: 2px solid #1e90ff;
  right: -8px;
  animation: cursor .8s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
  to{
      border-left: 2px solid #ff7f5000;
  }
}

@keyframes words {
  0%,20%{
      content: "Design_";
  }
  21%,40%{
      content: "Create_";
  }
  41%,60%{
      content: "Live_";
  }
  61%,80%{
      content: "WorkOn_";
  }
  81%,100%{
      content: "Enjoy_";
  }
}

@keyframes typing {
  10%,15%,30%,35%,50%,55%,70%,75%,90%,95%{
      width: 0;
  }
  5%,20%,25%,40%,45%,60%,65%,80%,85%{
      width: calc(100% + 8px);
  }
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .animated-text {
    font-size: 80px;
  }
}

@media (max-width: 480px) {
  .animated-text {
    font-size: 65px;
  }
}