* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Kosugi Maru", sans-serif; /* anime font */
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

:root {
  --bg--color: #10101a;
  --main-color: #9370db;
  --2nd-main-color: #ffffffcc;
  --text-color: #fff;
  --big-font: 5rem;
  --h2-font: 1.9rem;
  --p-font: 1rem;
}

body {
  background: linear-gradient(135deg, #0a0a12 0%, #1a1a2e 50%, #16213e 100%);
  background-attachment: fixed;
  color: var(--text-color);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(147, 112, 219, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(147, 112, 219, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg--color);
  padding: 24px 14%;
  transition: 0.3s;
}

/* Navbar */
.logo {
  color: var(--text-color);
  font-size: 1.8rem;
  font-weight: 600;
}

span {
  color: var(--main-color);
}

.navbar {
  display: flex;
}

.navbar a {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 20px;
}

.navbar a:hover {
  color: var(--main-color);
  border-bottom: 2px solid var(--main-color);
  transition: 0.3s;
}

#menu-icon {
  font-size: 28px;
  z-index: 10001;
  cursor: pointer;
  display: none;
}

/* Home Section */
section {
  padding: 120px 14%;
}

.home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 6rem;
  align-items: center;
  position: relative;
  height: 100vh;
  width: 100%;
}

.home-img img {
  width: 600px;
  max-width: 100%;
  height: auto;
}

.home-text h5 {
  color: var(--text-color);
  font-size: 25px;
  font-weight: 500;
  margin: 0 0 20px;
}

.home-text h1 {
  color: var(--text-color);
  font-size: var(--big-font);
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1;
}

.home-text h6 {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 25px;
}

.btn {
  background: linear-gradient(135deg, var(--main-color) 0%, #b19cd9 100%);
  color: var(--text-color);
  box-shadow: 0 8px 25px rgba(147, 112, 219, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 0 30px;
  line-height: 48px;
  border: 1px solid rgba(147, 112, 219, 0.3);
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: linear-gradient(135deg, #b19cd9 0%, var(--main-color) 100%);
  color: var(--text-color);
  box-shadow: 0 15px 35px rgba(147, 112, 219, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  border-color: rgba(147, 112, 219, 0.6);
}

/* About Section */
.about {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  grid-gap: 5rem;
  align-items: center;
}

.about-img img {
  width: 580px;
  max-width: 100%;
  height: auto;
}

.about-text h3 {
  color: var(--text-color);
  font-size: 30px;
  font-weight: 300;
  margin: 0 0 30px;
  letter-spacing: 6px;
}

.about-text h2 {
  font-size: var(--h2-font);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  max-width: 470;
  margin-bottom: 2rem;
}

.about-text p {
  color: var(--2nd-main-color);
  font-size: var(--p-font);
  font-weight: 300;
  line-height: 1.8rem;
  margin-bottom: 1.5rem;
  max-width: 570px;
}

.main-btn .btn {
  margin-right: 20px;
}

/* Services Section */
.center {
  text-align: center;
}

.center h3 {
  color: var(--text-color);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 6px;
  margin-bottom: 3rem;
}

/* Products Section */
.product-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, auto));
  grid-gap: 2rem;
  align-items: center;
  margin-top: 4.4rem;
}

.product-item {
  background: linear-gradient(145deg, #0f0f1a 0%, #1a1a2e 100%);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s ease;
  border: 1px solid rgba(147, 112, 219, 0.2);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.app-background {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.app-info {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.app-icon {
  flex-shrink: 0;
}

.app-icon img {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(147, 112, 219, 0.4);
  box-shadow: 0 4px 15px rgba(147, 112, 219, 0.2);
  transition: all 0.3s ease;
}

.product-item:hover .app-icon img {
  border-color: rgba(147, 112, 219, 0.8);
  box-shadow: 0 8px 25px rgba(147, 112, 219, 0.4);
  transform: scale(1.05);
}

.app-details {
  flex: 1;
}

.app-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-color);
  background: linear-gradient(135deg, #fff 0%, #b19cd9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.app-description {
  font-size: 15px;
  color: var(--2nd-main-color);
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

.product-item:hover .app-name {
  background: linear-gradient(135deg, #b19cd9 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-item:hover .app-description {
  color: rgba(255, 255, 255, 0.9);
}

.product-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(147, 112, 219, 0.4),
              0 15px 35px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: var(--main-color);
  background: linear-gradient(145deg, #1a1a2e 0%, #2a2a3e 100%);
}

.product-item:hover .bg-image {
  transform: scale(1.05);
}

/* Projects Section */
.projects {
  background: #0b0b13;
  padding: 120px 14%;
}

.project-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 3rem;
  margin-top: 4rem;
}

.project-card {
  background: var(--bg--color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s;
  border: 1px solid rgba(147, 112, 219, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 20px 40px 0px rgb(0 0 0 / 50%);
}

.project-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.project-info {
  padding: 30px;
}

.project-info h4 {
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.project-info p {
  color: var(--2nd-main-color);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  background: var(--main-color);
  color: var(--text-color);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 15px;
}

.btn-small {
  background: transparent;
  color: var(--main-color);
  border: 1px solid var(--main-color);
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-small:hover {
  background: var(--main-color);
  color: var(--text-color);
}

/* Skills Section */
.skills-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-gap: 3rem;
  margin-top: 4rem;
}

.skills-category h4 {
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-align: center;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-name {
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: #0b0b13;
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--main-color), #b19cd9);
  border-radius: 4px;
  transition: width 2s ease-in-out;
  width: 0%;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: 20px;
  margin-top: 20px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: #0b0b13;
  border-radius: 10px;
  transition: all 0.3s;
  border: 1px solid rgba(147, 112, 219, 0.1);
}

.tech-item:hover {
  transform: translateY(-5px);
  border-color: var(--main-color);
}

.tech-item i {
  font-size: 2rem;
  color: var(--main-color);
}

.tech-item span {
  color: var(--text-color);
  font-size: 12px;
  font-weight: 500;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 4rem;
  margin-top: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px;
  background: linear-gradient(145deg, #0f0f1a 0%, #1a1a2e 100%);
  border-radius: 18px;
  border: 1px solid rgba(147, 112, 219, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: visible;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(147, 112, 219, 0.1), transparent);
  transition: left 0.6s ease;
}

.contact-item:hover::before {
  left: 100%;
}

.contact-item:hover {
  border-color: var(--main-color);
  transform: translateX(15px) translateY(-5px);
  box-shadow: 0 15px 40px rgba(147, 112, 219, 0.3),
              0 8px 25px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, #1a1a2e 0%, #2a2a3e 100%);
}

.contact-item i {
  font-size: 2.2rem;
  color: var(--main-color);
  min-width: 50px;
  background: linear-gradient(135deg, var(--main-color) 0%, #b19cd9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(147, 112, 219, 0.3));
}

.contact-item:hover i {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(147, 112, 219, 0.5));
}

.contact-item h4 {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #b19cd9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.contact-item p {
  color: var(--2nd-main-color);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-item:hover h4 {
  background: linear-gradient(135deg, #b19cd9 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-item:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--main-color) 0%, #b19cd9 100%);
  border-radius: 50%;
  color: var(--bg-color);
  font-size: 1.6rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(147, 112, 219, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-links a:hover::before {
  opacity: 1;
}

.social-links a:hover {
  background: linear-gradient(135deg, #b19cd9 0%, var(--text-color) 100%);
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 15px 35px rgba(147, 112, 219, 0.5),
              0 8px 20px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.social-links a i {
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

.social-links a:hover i {
  transform: rotate(360deg) scale(1.1);
}

/* CTA Section */
.cta {
  background: #0b0b13;
  width: 100%;
  padding: 150px 0;
  text-align: center;
  margin: 100px auto;
}

.cta h4 {
  color: var(--text-color);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 30px;
}

/* Resume Section */
.resume {
  text-align: center;
}

.resume h3 {
  color: var(--text-color);
  font-size: 30px;
  font-weight: 580;
  margin: 0 0 30px;
  letter-spacing: 6px;
}

.resume .center {
  display: flex;
  justify-content: center;
}

.resume-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, auto));
  grid-gap: 3rem;
  align-items: center;
  margin-top: 4.4rem;
}

.box {
  background: #0b0b13;
  padding: 40px 30px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.4s;
}

.box h6 {
  color: #3e4455;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.box h4 {
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 13px;
}

.box p {
  font-size: var(--p-font);
  font-weight: 300;
  margin-bottom: 1.2rem;
  line-height: 1.8rem;
  color: var(--2nd-main-color);
}

.box h5 {
  font-size: 14px;
  font-weight: 500;
  color: var(--2nd-main-color);
}

.box:hover {
  transform: translate(-15px);
  box-shadow: 0px 15px 30px 0px rgb(0 0 0 / 70%);
}

/* Contact Section */
.contact {
  text-align: center;
}

.contact-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.contact-form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4.2rem;
}

.contact-form form {
  position: relative;
  width: 550px;
}

form input,
form textarea {
  width: 100%;
  padding: 20px;
  outline: none;
  border: none;
  background: #0b0b13;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  border-radius: 5px;
}

form input::placeholder,
form textarea::placeholder {
  color: var(--2nd-main-color);
}

textarea {
  height: 200px;
  resize: none;
}

form .send-btn {
  background: var(--main-color);
  color: var(--text-color);
  box-shadow: 4px 4px var(--text-color);
  display: inline-block;
  padding: 0 25px;
  line-height: 42px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  transition: ease all 0.35s;
  margin-top: 5px;
}

form .send-btn:hover {
  background: var(--text-color);
  color: var(--main-color);
  box-shadow: 4px 4px var(--main-color);
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  color: var(--2nd-main-color);
  background: #0b0b13;
  line-height: 1.8rem;
  margin-top: 3rem;
}

/* Media query for mobile devices with screen size up to 768px */
@media (max-width: 768px) {
  header {
    padding: 18px 3%;
  }
  #menu-icon {
    display: block;
  }
  .navbar {
    background: #0b0b13;
    position: absolute;
    top: -500px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 15px 30px 0px rgb(0 0 0 / 70%);
    text-align: left;
    transition: 0.2s ease;
  }
  .navbar a {
    display: block;
    margin: 1rem;
    padding: 1rem;
    border-left: 2px solid var(--main-color);
  }
  .navbar.active {
    top: 100%;
  }

  .home {
    grid-template-columns: 1fr;
    grid-gap: 2rem;
    margin-top: 80px;
    height: auto;
    text-align: center;
    padding: 50px 3%;
  }
  .home-img img {
    width: 100%;
    height: auto;
  }
  .home-text h5 {
    font-size: 20px;
  }
  .home-text h1 {
    font-size: 2.5rem;
  }
  .home-text h6 {
    font-size: 14px;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 50px 3%;
  }
  .about-img-container img {
    width: 100%;
  }
  .about-text h3 {
    font-size: 22px;
  }
  .about-text h2 {
    font-size: 1.6rem;
  }
  .about-text p {
    font-size: 0.9rem;
  }
  .resume-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 2rem;
    margin-top: 4.4rem;
  }
  .box h4 {
    font-size: 1rem;
  }
  .box p {
    font-size: 0.8rem;
  }
  .box h5 {
    font-size: 12px;
  }
  .contact-form form {
    width: 100%;
  }
  .service-content {
    grid-template-columns: 1fr;
  }

  .row {
    padding: 30px 20px;
  }

  .projects {
    padding: 80px 3%;
  }

  .project-content {
    grid-template-columns: 1fr;
    grid-gap: 2rem;
  }

  .project-links {
    justify-content: center;
  }

  .skills-content {
    grid-template-columns: 1fr;
    grid-gap: 2rem;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr;
    grid-gap: 2rem;
  }

  .contact-item {
    padding: 20px;
  }

  .contact-item:hover {
    transform: translateY(-5px);
  }
}
