@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

html {
  font-size: 62.5%;
}

body {
  width: 100%;
  overflow-x: hidden;
  background-color: black;
  color: white;
}

/* Header */
header {
  margin-top: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  background-color: transparent;
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.5));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 3rem;
  color: #b74b4b;
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}

.logo:hover {
  transform: scale(1.1);
}

    nav {
        transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
}

nav a {
  font-size: 1.8rem;
  color: white;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
  color: #b74b4b;
  border-bottom: 3px solid #b74b4b;
}

/* Menu toggle for mobile */
.menu-toggle {
  display: none;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

/* Home Section */
section.home {
  min-height: 100vh;
  padding: 5rem 9%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background-color: black;
}

.home-content h1 {
  font-size: 6.5rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 2rem;
  color: white;
}

.home-content h3 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.home-content p {
  font-size: 1.6rem;
}

.home-img {
  position: relative;
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 2rem;
}

.home-img::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(45deg, #b74b4b, transparent);
  animation: rotate 10s linear infinite;
}

.home-img::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, #b74b4b);
  animation: rotate 10s linear infinite reverse;
}

.home-img img {
  position: relative;
  width: 95%;
  height: 95%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(183, 75, 75, 0.3);
  transition: all 0.3s ease;
  z-index: 1;
}

.home-img:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(183, 75, 75, 0.5);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #b74b4b;
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
  color: #b74b4b;
}

.social-icons a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  background-color: #b74b4b;
  box-shadow: 0 0 25px #b74b4b;
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background-color: black;
  border-radius: 4rem;
  font-size: 1.6rem;
  color: #b74b4b;
  letter-spacing: 0.3rem;
  font-weight: 600;
  border: 2px solid #b74b4b;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.03);
  background-color: #b74b4b;
  color: black;
  box-shadow: 0 0 25px #b74b4b;
}

/* Smooth click/pressed effect */
.btn:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Typing effect */
.typing-text {
  font-size: 3.4rem;
  font-weight: 600;
  min-width: 280px;
  position: relative;
}

.js-enabled .typing-text span::before,
.js-enabled .typing-text span::after {
  content: none !important;
  animation: none !important;
  border: none !important;
}

.typing-text span::before {
  content: "software Developer";
  color: #b74b4b;
  animation: words 20s infinite;
}

.typing-text span::after {
  content: "";
  background-color: black;
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid black;
  right: -8px;
  animation: cursor 0.6s infinite;
}

@keyframes cursor {
  to {
    border-left: 3px solid #b74b4b;
  }
}

@keyframes words {
  0%, 20% {
    content: "Web Developer";
  }
  21%, 40% {
    content: "Developer";
  }
  41%, 60% {
    content: "Web Designer";
  }
  61%, 80% {
    content: "Youtuber";
  }
  81%, 100% {
    content: "Script Writer";
  }
}

.typing-text .prefix {
    transition: opacity 0.3s ease;
}

.typing-text .typing {
    display: inline-block;
}

/* Additional Sections */
section.about,
section.skills,
section.contact {
  padding: 5rem 9%;
  background-color: #121212;
  text-align: center;
}

section.about h2,
section.skills h2,
section.contact h2 {
  font-size: 3rem;
  color: #b74b4b;
  margin-bottom: 2rem;
}

section.about p,
section.contact p {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

section.skills ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

section.skills ul li {
  background-color: #1f1f1f;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 1.6rem;
  border: 1px solid #b74b4b;
}

/* Contact Section Styles */
.contact {
    min-height: 100vh;
    padding: 8rem 9%;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact h2 {
    font-size: 4.5rem;
    margin-bottom: 6rem;
    color: #b74b4b;
}

.contact-container {
    width: 100%;
    max-width: 1200px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

.contact-item {
    text-align: center;
    padding: 3rem;
    border: 2px solid #b74b4b;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(183, 75, 75, 0.2);
}

.contact-item i {
    font-size: 3rem;
    color: #b74b4b;
    margin-bottom: 1.5rem;
}

.contact-item h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-item p {
    font-size: 1.8rem;
    color: #888;
    line-height: 1.5;
}

.contact-item a {
    color: #888;
    transition: color 0.3s ease;
    text-decoration: none;
    word-break: break-word;
}

.contact-item a:hover {
    color: #b74b4b;
}

.contact-social {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.contact-social a {
    width: 5rem;
    height: 5rem;
    border: 2px solid #b74b4b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #b74b4b;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background-color: #b74b4b;
    color: black;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact {
        padding: 6rem 4%;
    }

    .contact h2 {
        font-size: 3.5rem;
        margin-bottom: 4rem;
    }

    .contact-item {
        padding: 2rem;
    }

    .contact-item h3 {
        font-size: 2rem;
    }

    .contact-item p {
        font-size: 1.6rem;
        word-wrap: break-word;
    }

    .contact-item a {
        display: inline-block;
        padding: 0.5rem 0;
    }

    .contact-social a {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 2rem;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 995px) {
  nav {
    position: absolute;
    display: none;
    top: 0;
    right: 0;
    width: 40%;
    flex-direction: column;
    border-left: 3px solid #b74b4b;
    border-bottom: 3px solid #b74b4b;
    border-bottom-left-radius: 2rem;
    padding: 1rem;
    background-color: #161616;
    border-top: 0.1rem solid rgba(0,0,0,0.1);
  }
  
  nav.active {
    display: flex;
  }
  
  nav a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }
  
  nav a:hover,
  nav a.active {
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #b74b4b;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .home {
    flex-direction: column;
    margin: 5rem 4rem;
    gap: 4rem;
  }
  
  .home .home-content h1 {
    font-size: 5rem;
  }
  
  .home-content h3 {
    font-size: 2.5rem;
  }
  
  .home-img {
    width: 70vw;
    height: 70vw;
    margin: 4rem auto;
  }
}

@media (max-width: 1000px) {
  .home {
    gap: 4rem;
  }
}

/* Go to Top Button Styles */
.scroll-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    border: 2px solid #b74b4b;
    border-radius: 50%;
    background-color: transparent;
    color: #b74b4b;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #b74b4b;
    color: black;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(183, 75, 75, 0.3);
}

/* Add this for the highlighted name */
.home-content h1 span.highlight {
    color: #b74b4b;
}

.skills-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.skills-category {
    background: rgba(31, 31, 31, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    min-width: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid #b74b4b;
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(183, 75, 75, 0.2);
}

.skills-category i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #b74b4b;
}

.skills-category h3 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2.2rem;
}

.skills-category ul {
    list-style: none;
    padding: 0;
}

.skills-category ul li {
    margin: 0.8rem 0;
    color: #ccc;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.skills-category ul li:hover {
    color: #b74b4b;
}

@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-category {
        width: 100%;
        max-width: 300px;
    }
}


