@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playwrite+ES&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "poppins", sans-serif;
}

:root {
  --bg-color: #080808;
  --secound-bg-color: #101010;
  --text-color: white;
  --main-color: #511c7b;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 2rem 5%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

#menu-icon {
  font-size: 3.5rem;
  color: var(--main-color);
  display: none;
  cursor: pointer;
}

.close-menu {
  display: none;
  font-size: 3.5rem;
  color: var(--main-color);
  position: absolute;
  top: 2rem;
  right: 2rem;
  cursor: pointer;
}

.logo {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-color);
  font-weight: 800;
  font-family: "Playwrite ES", sans-serif;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.logo:hover {
  transform: scale(1.1);
}

.navbar a {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--text-color);
  margin-left: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
}

.navbar a:hover {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

section {
  margin-top: 10rem;
  min-height: auto;
  padding: 6rem 5% 4rem;
  position: relative;
}

.heading {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin: 2rem 0 3rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--main-color);
  box-shadow: 0 0 20px var(--main-color);
  border-radius: 2.5rem;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  color: black;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  text-align: center;
  min-width: 120px;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
}

.main-btn {
  width: 80px;
  height: 30px;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.3s ease;
  background: linear-gradient(to bottom right, #511c7b 0%, rgba(46, 142, 255, 0) 30%);
  background-color: #403069;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-btn:hover,
.main-btn:focus {
  background-color: #511c7b;
  box-shadow: 0 0 10px #511c7b;
  outline: none;
}

.main-btn-inner {
  width: 100px;
  height: 27px;
  border-radius: 13px;
  background-color: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Playwrite ES", sans-serif;
  font-size: 15px;
  font-weight: 300;
}

.web-btn {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 10rem);
  flex-wrap: wrap;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.home-content {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
  color: #fff;
}

.home-content h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 500;
  margin-top: 1rem;
  line-height: 1.1;
}

.home-content h3 {
  font-family: "Montserrat", sans-serif;
  margin: 0.5rem 0;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.home-content ol {
  list-style: none;
  --height: 3rem;
  height: var(--height);
  line-height: var(--height);
  overflow: hidden;
}

.home-content ol li {
  animation: slide-up 12s infinite;
}

@keyframes slide-up {
  0%, 10% { transform: translateY(0%); }
  15%, 25% { transform: translateY(-100%); }
  30%, 40% { transform: translateY(-200%); }
}

.home-content ol li span {
  font-family: "Montserrat", sans-serif;
  margin: 0.5rem 0;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  white-space: nowrap;
}

.home-img {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;
}

.home-img img {
  width: clamp(200px, 25vw, 350px);
  height: clamp(200px, 25vw, 350px);
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
  object-fit: cover;
}

.home-img img:hover {
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color), 0 0 100px var(--main-color);
}

.social-icons {
  margin: 1.5rem 0;
}

.social-icons .inner-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  padding: 0.8rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  transition: 0.3s ease-in-out;
}

.social-icons a:hover {
  color: var(--text-color);
  background-color: var(--main-color);
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 0 20px var(--main-color);
}

.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  background: var(--secound-bg-color);
  padding: 4rem 5% 3rem;
  text-align: center;
}

.about-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-text p {
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  line-height: 1.8;
  color: #ddd;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 2rem;
}

.about-text strong {
  color: var(--main-color);
  font-weight: 700;
}

.about-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

.bento-card {
  background: var(--secound-bg-color);
  border: 2px solid rgba(81, 28, 123, 0.3);
  border-radius: 2rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  min-height: 180px;
}

.bento-card:hover {
  border-color: var(--main-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(81, 28, 123, 0.4);
  background: rgba(81, 28, 123, 0.1);
}

.card-icon {
  font-size: 4rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.bento-card h4 {
  font-size: 1.8rem;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 0.5rem;
}

.bento-card span {
  font-size: 1.3rem;
  color: #aaa;
}

.about-stats-text {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-left: 0.5rem;
}

.stat-item-text {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-num {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--main-color);
  font-family: "Montserrat", sans-serif;
  line-height: 1;
}

.stat-desc {
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.4;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  text-align: left;
}

.stat-divider {
  width: 2px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
}

.my-work-btn {
  width: 120px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-work-inner {
  width: 116px;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
}

.my-work-inner p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  transform: translateY(1px);
}

.about-btn-link {
  display: inline-block;
  text-decoration: none;
}

.skills-icons {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 3rem;
}

.skills-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 3rem 2rem;
  margin: 2rem auto;
  border: 1px solid rgba(81, 28, 123, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 1200px;
  width: 100%;
}

.skills-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  overflow: hidden;
  position: relative;
}

.skills-track {
  display: flex;
  gap: 40px;
  animation: scrollIcons 20s linear infinite;
}

.skills-track img {
  height: 60px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  transition: all 0.3s ease;
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(81, 28, 123, 0.3);
}

.skills-track img:hover {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 6px 12px #511c7b);
  background: rgba(81, 28, 123, 0.2);
}

.skills-track:hover {
  animation-play-state: paused;
}

@keyframes scrollIcons {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.projects {
  background-color: var(--secound-bg-color);
  padding: 4rem 5% 3rem;
}

.projects-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  gap: clamp(1.5rem, 3vw, 4rem);
  padding: 1.5rem 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background-color: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 2.5rem;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 5px var(--main-color);
  transition: 0.3s ease;
  width: 100%;
  max-width: 350px;
  min-height: 300px;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px var(--main-color);
}

.project-card img {
  width: 100%;
  max-width: 280px;
  height: 160px;
  border-radius: 1em;
  object-fit: cover;
}

.project-card h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: 1rem 0 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-color);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.project-card p {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.3rem, 1.6vw, 1.5rem);
  color: #ccc;
  font-weight: 400;
  line-height: 1.5;
  margin: 0.5rem 0 1rem;
  max-width: 90%;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.image-slider {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
}

.image-slider .slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
}

.image-slider .slider-img.active {
  opacity: 1;
  z-index: 2;
  position: relative;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 18px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: 0.3s;
}

.nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.project-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  padding: 0.8rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  transition: 0.3s ease-in-out;
  width: 4.5rem;
  height: 4.5rem;
}

.project-links a:hover {
  color: var(--text-color);
  background-color: var(--main-color);
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 0 20px var(--main-color);
}

.contact {
  background-color: var(--bg-color);
  padding: 4rem 5% 3rem;
}

.contact h2 {
  margin-bottom: 2rem;
  color: var(--text-color);
}

.contact form {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.contact form .input-box,
.contact form .input-group-2 {
  flex: 1;
  min-width: 220px;
}

.contact form .input-group {
  display: flex;
  gap: 1rem;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  color: var(--text-color);
  background-color: var(--secound-bg-color);
  border-radius: 1.5rem;
  border: 2px solid var(--main-color);
  margin: 0.8rem 0;
  resize: none;
  transition: 0.3s ease;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
  outline: none;
  box-shadow: 0 0 12px var(--main-color);
}

#form-message {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  width: 90%;
  max-width: 600px;
  margin: 3rem auto 0;
  padding: 2rem;
  background: rgba(16, 16, 16, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(81, 28, 123, 0.3);
  border-left: 5px solid var(--main-color);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(81, 28, 123, 0.2);
  animation: slideInUp 0.6s ease-out forwards;
}

#form-message .icon-box i {
  font-size: 3.5rem;
  color: var(--main-color);
  filter: drop-shadow(0 0 10px var(--main-color));
}

#form-message .message-content {
  text-align: left;
}

#form-message .message-content h3 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-family: "Montserrat", sans-serif;
}

#form-message .message-content p {
  font-size: 1.4rem;
  color: #ccc;
  margin: 0;
  line-height: 1.4;
}

@keyframes slideInUp {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.footer {
  background-color: var(--secound-bg-color);
  padding: 3rem 5%;
}

.footer .social-icons {
  text-align: center;
  margin-bottom: 1.5rem;
}

.footer ul {
  text-align: center;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  list-style: none;
}

.footer ul li {
  display: inline-block;
  margin: 0 12px;
}

.footer ul li a {
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}

@media (min-width: 1400px) {
  .header { padding: 3rem 8%; }
  section { padding: 8rem 8% 6rem; }
  .projects-box { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  .project-card { max-width: 400px; }
}

@media (max-width: 1024px) {
  .header { padding: 1.5rem 4%; }
  section { padding: 4rem 4% 3rem; }
  .home { gap: 3rem; min-height: 70vh; }
  .about { padding: 3rem 4% 2rem; }
  .projects { padding: 3rem 4% 2rem; }
  .projects-box { gap: 2.5rem; }
  .contact { padding: 3rem 4% 2rem; }
}

@media (max-width: 991px) {
  .about-container { flex-direction: column; text-align: center; }
  .about-text { text-align: center; }
  .about-text h2.heading { text-align: center !important; }
  .about-grid { max-width: 600px; }
  
  .about-stats-text {
    justify-content: center;
    padding-left: 0;
    width: 100%;
    gap: 2rem;
  }
  
  .about-btn-link {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  * { max-width: 100vw; }
  html { font-size: 50%; }
  .header { padding: 1rem 3%; }
  #menu-icon { display: block; font-size: 2.5rem; }
  .close-menu { display: block; }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    padding: 6rem 3% 3rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: 0.5s ease;
    z-index: 1001;
  }
  .navbar.active { right: 0; }
  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 1.5rem 0;
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 1rem;
  }
  .navbar a:hover {
    background-color: var(--main-color);
    color: white;
    border-bottom: none;
  }

  section { padding: 3rem 3% 2rem; }
  .home {
    flex-direction: column;
    gap: 10rem;
    text-align: center;
    min-height: 60vh;
    padding-top: 2rem;
  }
  .projects { padding: 10rem 5% 3rem; }
  .projects-box { grid-template-columns: 1fr; gap: 2rem; }
  .contact form { flex-direction: column; gap: 1.5rem; margin: 2rem 0; }
  .contact form .input-box, .contact form .input-group { flex-direction: column; gap: 1rem; }
  .project-card { max-width: 100%; min-height: 280px; padding: 1.5rem; }
  .footer ul li { display: block; margin: 0.8rem 0; }
  .skills-track img { height: 50px; }
  .skills-track { gap: 30px; }
}

@media (max-width: 480px) {
  #form-message { padding: 1.5rem; gap: 1.5rem; }
  #form-message .icon-box i { font-size: 3rem; }
  #form-message .message-content h3 { font-size: 1.8rem; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .bento-card { padding: 2rem; min-height: auto; }
  .stat-num { font-size: 2.8rem; }
  .stat-desc { font-size: 1.1rem; }
}

@media (max-width: 430px) {
  html { font-size: 45%; }
  .header { padding: 0.8rem 2%; }
  section { padding: 2.5rem 2% 1.5rem; }
  .home { gap: 1.5rem; min-height: 50vh; padding-top: 1.5rem; }
  .about { gap: 1.5rem; padding: 2.5rem 2% 1.5rem; }
  .projects-box { gap: 2.5rem; }
  .project-card { padding: 1.2rem; min-height: 250px; gap: 1rem; }
  .project-card img { height: 140px; }
  .contact form { gap: 1rem; margin: 1.5rem 0; }
  .btn { width: 100%; max-width: 180px; padding: 0.8rem 1.5rem; }
  .skills-track { gap: 25px; }
  .skills-track img { height: 40px; }
}