@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --maincolor: #fec544;
  --textcolor: #fdfeff;
  --secondtextcolor: #a9adb8;
  --buttoncolor: #070d1b;
  --backgroundcolor: #0a101e;
}

body.light-mode {
  --textcolor: #1a1a1a;
  --secondtextcolor: #666666;
  --buttoncolor: #f5f5f5;
  --backgroundcolor: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  list-style: none;
}

body {
  background-color: var(--backgroundcolor);
  overflow-x: hidden;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

a {
  text-decoration: none;
}

.settings-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--maincolor);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 4px 15px rgba(254, 197, 68, 0.3);
  transition: all 0.3s ease;
}

.settings-icon:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(254, 197, 68, 0.5);
}

.settings-icon i {
  color: var(--buttoncolor);
  font-size: 22px;
  animation: spin 4s linear infinite;
}

.settings-icon:hover i {
  animation-play-state: paused;
}

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

.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.settings-modal.active {
  opacity: 1;
  visibility: visible;
}

.settings-content {
  background: var(--buttoncolor);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  padding: 30px;
  transform: scale(0.8) translateY(-50px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.settings-modal.active .settings-content {
  transform: scale(1) translateY(0);
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header h3 {
  color: var(--textcolor);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
}

.close-settings {
  width: 35px;
  height: 35px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: end;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.close-settings i {
  color: var(--textcolor);
  font-size: 18px;
}

.close-settings:hover i {
  color: var(--maincolor);
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.setting-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--maincolor);
}

.setting-label {
  display: flex;
  align-items: center;
  gap: 15px;
}

.setting-label i {
  color: var(--maincolor);
  font-size: 20px;
}

.setting-label span {
  color: var(--textcolor);
  font-size: 16px;
  font-weight: 500;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2c3e50;
  transition: 0.4s;
  border-radius: 30px;
}

.theme-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .theme-slider {
  background-color: var(--maincolor);
}

input:checked + .theme-slider:before {
  transform: translateX(24px);
}

.color-picker {
  display: flex;
  gap: 10px;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active {
  border-color: var(--textcolor);
  box-shadow: 0 0 0 2px var(--buttoncolor);
}

.color-option[data-color="#fec544"] {
  background-color: #fec544;
}

.color-option[data-color="#ff6b6b"] {
  background-color: #ff6b6b;
}

.color-option[data-color="#4ecdc4"] {
  background-color: #4ecdc4;
}

.color-option[data-color="#95e1d3"] {
  background-color: #95e1d3;
}

.color-option[data-color="#f38181"] {
  background-color: #f38181;
}

.color-option[data-color="#aa96da"] {
  background-color: #aa96da;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 16, 30, 0.95);
  backdrop-filter: blur(10px);
  transition: background-color 0.4s ease;
}

body.light-mode header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav .logo .icon i {
  color: var(--maincolor);
  font-size: 35px;
}

nav .logo a {
  color: var(--textcolor);
  font-size: 30px;
  font-weight: bold;
}

.menu {
  display: flex;
  align-items: center;
}

.menu ul {
  display: flex;
  gap: 40px;
}

.menu ul li {
  list-style-type: none;
}

.menu a {
  color: var(--textcolor);
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  transition: color 0.3s;
}

.menu a:hover {
  color: var(--maincolor);
}

.telephone {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telephone a {
  color: var(--maincolor);
}

.telephone i {
  color: var(--textcolor);
}

.bar {
  color: var(--secondtextcolor);
  font-size: 30px;
  display: none;
  cursor: pointer;
}

.bar i {
  transition: all 0.3s ease;
}

#close {
  display: none;
  opacity: 0;
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked + .bar #open {
  display: none;
  opacity: 0;
}

#menu-toggle:checked + .bar #close {
  display: block;
  opacity: 1;
}

.title {
  position: relative;
  width: 100%;
  height: 2px;
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
}
.title::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 2px;
  background: #444;
}

body.light-mode .title::after {
  background: #ddd;
}

.title::before {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--maincolor);
  z-index: 1;
}

section {
  position: relative;
  padding: 100px 0;
}

section::before {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 90px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: 8px;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}

body.light-mode section::before {
  color: rgba(0, 0, 0, 0.03);
}

button {
  color: var(--buttoncolor);
  background-color: var(--maincolor);
  line-height: 1.5em;
  font-weight: 500;
  padding: 12px 35px;
  border-radius: 50px;
  min-width: 170px;
  border: none;
  outline: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(254, 197, 68, 0.3);
}

#home {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
}

#home canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#home .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 40px;
  width: 100%;
}

#home .home-about {
  flex: 1;
}

#home .container .home-about h3 {
  color: var(--maincolor);
  font-size: 30px;
  font-weight: 300;
}

#home .container .home-about h2 {
  color: var(--textcolor);
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 4px;
}

#home .container .home-about p {
  color: var(--secondtextcolor);
  font-size: 36px;
  font-weight: 300;
  margin: 30px 0;
}

#home .container .home-image {
  flex-shrink: 0;
}

#home .container .home-image img {
  width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

#home .container .home-social {
  position: absolute;
  bottom: 100px;
  left: 52%;
  transform: translateX(-68%);
  display: flex;
  align-items: center;
  background-color: #101624;
  border: 1px solid #232935;
  border-radius: 50px 0 0 50px;
  padding: 5px 22px;
  z-index: 5;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease;
}

body.light-mode #home .container .home-social {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
}

#home .container .home-social .icons {
  display: flex;
  gap: 20px;
}

#home .container .home-social .icons .icon a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 55px;
  padding: 10px 15px;
  background: #070d1b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: white;
  overflow: hidden;
  white-space: nowrap;
  transition:
    width 0.35s ease,
    background 0.3s ease;
}

body.light-mode #home .container .home-social .icons .icon a {
  background: #ffffff;
  border-color: #e0e0e0;
}

#home .container .home-social .icons .icon a:hover {
  width: 150px;
}

#home .container .home-social .icons span {
  opacity: 0;
  transform: translateX(-8px);
  transition: 0.3s ease;
  color: var(--textcolor);
}

#home .container .home-social .icons .icon a:hover span {
  opacity: 1;
  transform: translateX(0);
}

#home .container .home-social .icons i {
  font-size: 22px;
  color: var(--secondtextcolor);
}

#home .home-social .icons .icon:first-child a {
  width: 145px;
}

#home .home-social .icons .icon:first-child span {
  opacity: 1;
  transform: translateX(0);
}

#home .home-social .icons:hover .icon:first-child a {
  width: 55px;
}

#home .home-social .icons:hover .icon:first-child span {
  opacity: 0;
  transform: translateX(-8px);
}

#home .container .home-social .icons .icon a:hover {
  width: 150px;
}

#home .container .home-social .icons .icon a:hover span {
  opacity: 1;
  transform: translateX(0);
}

section {
  position: relative;
  padding: 100px 0;
}

section h4 {
  text-align: center;
  color: var(--maincolor);
  position: relative;
  z-index: 2;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

section::before {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 90px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: 8px;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}

#about::before {
  content: "ABOUT ME";
}

#about .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

#about .container .about-img img {
  max-width: 510px;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

#about .about-info {
  flex: 1;
  max-width: 600px;
}

#about .about-info h2 {
  color: var(--textcolor);
  font-size: 36px;
  font-weight: 400;
  margin: 20px 0;
}

#about .about-info h3 {
  font-size: 24px;
  font-weight: 300;
  color: var(--maincolor);
  margin: 20px 0;
}

#about .about-info p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6em;
  color: var(--secondtextcolor);
  margin: 20px 0;
}

.about-right ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.about-right ul li {
  display: grid;
  grid-template-columns: 140px 20px 1fr;
  color: var(--secondtextcolor);
  font-size: 16px;
}

.about-right ul li span:nth-child(1) {
  color: var(--secondtextcolor);
}

#services {
  margin: 0;
  padding: 100px 0;
}

#services::before {
  content: "SERVICES";
}

#services .container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: #0d1424;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s ease;
  border-radius: 5px;
}

body.light-mode .service-card {
  background-color: #f8f8f8;
  border-color: rgba(0, 0, 0, 0.05);
}

.service-card:hover .s-icon {
  border-color: var(--maincolor);
  color: var(--maincolor);
}

.service-card:hover h3 {
  color: var(--maincolor);
}

.service-card .s-icon {
  width: 75px;
  height: 75px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #444;
  transition: 0.3s;
}

body.light-mode .service-card .s-icon {
  border-color: rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: var(--textcolor);
  margin-bottom: 15px;
  font-size: 20px;
  transition: 0.3s;
}

.service-card p {
  color: var(--secondtextcolor);
  line-height: 1.6;
}

.service-card,
.service-card .s-icon,
.service-card h3 {
  transition: all 0.4s ease;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #services .container {
    margin: 40px auto;
    padding: 0 20px;
  }
}
@media (max-width: 768px) {
  #services {
    margin: 0;
    padding: 50px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  #services .container {
    margin: 20px auto;
  }

  .service-card {
    padding: 30px 20px;
  }

  #services .container h4 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  #services .container {
    padding: 0 15px;
  }

  .service-card h3 {
    font-size: 18px;
  }
}

#skills::before {
  content: "MY SKILLS";
}

#skills .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

#skills .skills-about {
  flex: 1;
  max-width: 550px;
}

#skills .skills-about h2 {
  color: var(--textcolor);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 20px;
}

#skills .skills-about p {
  color: var(--secondtextcolor);
  font-size: 16px;
  line-height: 1.6em;
  margin-bottom: 20px;
}

.skills-bar {
  flex: 1;
  max-width: 600px;
}

.skill-row {
  display: grid;
  grid-template-columns: 120px 1fr 50px;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.skill-row h3 {
  color: var(--textcolor);
  font-size: 16px;
}

.percent {
  text-align: right;
  color: var(--maincolor);
  font-size: 16px;
  font-weight: 600;
}
.skills-bar-line {
  width: 100%;
  height: 6px;
  background-color: #232935;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

body.light-mode .skills-bar-line {
  background-color: #e0e0e0;
}

.progress {
  height: 100%;
  background-color: var(--maincolor);
  border-radius: 50px;
  width: 0;
  transition: width 1.5s ease-out;
}

.progress[data-percent="95"].animate {
  animation: progress-95 1.5s ease-out forwards;
}

.progress[data-percent="85"].animate {
  animation: progress-85 1.5s ease-out forwards;
}

.progress[data-percent="80"].animate {
  animation: progress-80 1.5s ease-out forwards;
}

.progress[data-percent="70"].animate {
  animation: progress-70 1.5s ease-out forwards;
}

.progress[data-percent="65"].animate {
  animation: progress-65 1.5s ease-out forwards;
}

.progress[data-percent="60"].animate {
  animation: progress-60 1.5s ease-out forwards;
}

#portfolio::before {
  content: "Portfolios";
}

#portfolio {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
  position: relative;
  z-index: 5;
}

.card {
  background: rgba(30, 30, 46, 0.8);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

body.light-mode .card {
  background: rgba(248, 248, 248, 0.9);
  border-color: rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(220, 38, 38, 0.3);
}

body.light-mode .card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a3e 0%, #1f1f2e 100%);
}

body.light-mode .card-image {
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

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

.card:hover .card-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.play-icon {
  width: 64px;
  height: 64px;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.card:hover .play-icon {
  transform: scale(1.1);
  background: rgba(220, 38, 38, 1);
}

.stats {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-count {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  color: white;
  font-size: 13px;
  font-weight: 500;
}

.eye-icon {
  width: 16px;
  height: 16px;
}

.duration {
  background: rgba(0, 0, 0, 0.8);
  padding: 6px 12px;
  border-radius: 6px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.card-content {
  padding: 24px;
}

.card-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

body.light-mode .card-title {
  color: #1a1a1a;
}

.card-description {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  display: block;
  -webkit-line-clamp: initial;
  overflow: visible;
}

body.light-mode .card-description {
  color: rgba(0, 0, 0, 0.65);
}

.card-link {
  display: block;
  text-decoration: none;
}

.section-title {
  color: white;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}

body.light-mode .section-title {
  color: #1a1a1a;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 16px;
  margin-bottom: 40px;
}

body.light-mode .section-subtitle {
  color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .card-image {
    height: 200px;
  }
}

#reviews::before {
  content: "REVIEWS";
}

#reviews .container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-item {
  cursor: default;
}

.review-box {
  background-color: #0d1424;
  padding: 35px 25px;
  border-radius: 4px;
  position: relative;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s ease;
}

body.light-mode .review-box {
  background-color: #f8f8f8;
  border-color: rgba(0, 0, 0, 0.05);
}

.review-box p {
  color: var(--secondtextcolor);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.arrow-down {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s ease;
}

body.light-mode .arrow-down {
  border-top-color: rgba(0, 0, 0, 0.05);
}

.arrow-down::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -15px;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #0d1424;
}

body.light-mode .arrow-down::before {
  border-top-color: #f8f8f8;
}

.review-item:hover .review-box {
  border-color: var(--maincolor);
}

.review-item:hover .arrow-down {
  border-top-color: var(--maincolor);
}

.review-user {
  text-align: center;
}

.review-user img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .review-user img {
  border-color: rgba(0, 0, 0, 0.1);
}

.review-user h5 {
  color: var(--textcolor);
  font-size: 18px;
  margin-bottom: 5px;
}

.review-user span {
  color: var(--maincolor);
  font-size: 13px;
}

#contact {
  padding: 100px 0;
  background-color: var(--backgroundcolor);
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
}

.contact-header {
  text-align: center;
  position: relative;
}

.contact-header h4 {
  color: var(--maincolor);
  font-size: 24px;
  font-weight: 700;
  position: relative;
  z-index: 2;
  letter-spacing: 2px;
}

#contact::before {
  content: "CONTACT ME";
}

.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 0 40px;
}

.contact-form,
.contact-info {
  flex: 1;
}

h3 {
  color: var(--textcolor);
  font-size: 32px;
  margin-bottom: 25px;
  font-weight: 600;
}

.contact-info p {
  color: var(--secondtextcolor);
  line-height: 1.8;
  margin-bottom: 35px;
  font-size: 15px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  background: var(--buttoncolor);
  border: 1px solid rgba(169, 173, 184, 0.1);
  padding: 18px;
  color: var(--textcolor);
  border-radius: 8px;
  font-size: 15px;
  transition: 0.3s;
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
  border-color: rgba(0, 0, 0, 0.1);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--maincolor);
  outline: none;
}

.send-btn {
  background: var(--maincolor);
  color: var(--buttoncolor);
  padding: 14px 35px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  width: fit-content;
  margin-top: 10px;
  transition: 0.3s ease;
}

.send-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(254, 197, 68, 0.2);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--buttoncolor);
  border: 1px solid rgba(169, 173, 184, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maincolor);
  font-size: 18px;
  transition: 0.3s;
}

body.light-mode .info-icon {
  border-color: rgba(0, 0, 0, 0.1);
}

.info-item:hover .info-icon {
  border-color: var(--maincolor);
  background: rgba(254, 197, 68, 0.05);
}

.info-item i {
  color: var(--secondtextcolor);
}

.info-text h5 {
  color: var(--textcolor);
  font-size: 18px;
  margin-bottom: 2px;
}

.info-text span {
  color: var(--secondtextcolor);
  font-size: 14px;
}

.social-connect h5 {
  color: var(--secondtextcolor);
  margin: 40px 0 20px;
  font-weight: 500;
  font-size: 16px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  background: var(--buttoncolor);
  border: 1px solid rgba(169, 173, 184, 0.2);
  color: var(--textcolor);
  padding: 12px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  max-width: 50px;
}

body.light-mode .social-link {
  border-color: rgba(0, 0, 0, 0.1);
}

.social-link i {
  font-size: 18px;
  min-width: 22px;
  text-align: center;
}

.social-name {
  margin-left: 10px;
  font-weight: 500;
  opacity: 0;
  white-space: nowrap;
  transition: 0.4s;
  color: var(--maincolor);
}

.social-link:hover {
  max-width: 200px;
  border-color: var(--maincolor);
  padding-right: 20px;
}

.social-link:hover .social-name {
  opacity: 1;
}

@media (max-width: 992px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }
}

footer {
  background-color: var(--buttoncolor);
  transition: background-color 0.4s ease;
}

footer h2 {
  text-align: center;
  color: var(--secondtextcolor);
  font-size: 16px;
  font-weight: 400;
  padding: 30px 20px;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--buttoncolor);
  color: var(--maincolor);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.scroll-top i {
  font-size: 20px;
  animation: arrowFloat 2s infinite ease-in-out;
}

@keyframes arrowFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.scroll-top:hover {
  background-color: var(--maincolor);
  color: white;
  transform: translateY(-5px);
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.1s;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
}

@media (max-width: 1200px) {
  #home .container .home-about h2 {
    font-size: 80px;
  }

  #home .container .home-about p {
    font-size: 28px;
  }

  #home .container .home-image img {
    width: 400px;
  }

  #skills .container,
  .contact-wrapper {
    gap: 50px;
  }
}

@media (max-width: 992px) {
  nav {
    padding: 0 30px;
  }

  .menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 16, 30, 0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  body.light-mode .menu {
    background-color: rgba(255, 255, 255, 0.98);
  }

  .menu ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .menu ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  body.light-mode .menu ul li {
    border-bottom-color: rgba(0, 0, 0, 0.05);
  }

  .menu ul li a {
    display: block;
    padding: 20px 30px;
    font-size: 14px;
  }

  #menu-toggle:checked ~ .menu {
    max-height: 400px;
  }

  .telephone {
    display: none;
  }

  .bar {
    display: block;
  }

  #home .container {
    flex-direction: column;
    text-align: center;
    padding: 100px 40px 150px;
  }

  #home .container .home-about h2 {
    font-size: 70px;
  }

  #home .container .home-about p {
    font-size: 24px;
  }

  #home .container .home-image {
    margin-top: 40px;
  }

  #home .container .home-image img {
    width: 350px;
  }

  #home .container .home-social {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 40px;
  }

  #about .container {
    flex-direction: column;
    gap: 50px;
  }

  #about .container .about-img img {
    max-width: 100%;
  }

  .services-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #skills .container {
    flex-direction: column;
    gap: 50px;
  }

  #skills .skills-about,
  .skills-bar {
    max-width: 100%;
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 60px;
  }

  section::before {
    font-size: 70px;
  }
}

@media (max-width: 768px) {
  .settings-icon {
    width: 45px;
    height: 45px;
    top: 15px;
    right: 15px;
  }

  .settings-icon i {
    font-size: 20px;
  }

  .settings-content {
    width: 95%;
    padding: 25px;
  }

  .color-picker {
    gap: 8px;
  }

  .color-option {
    width: 28px;
    height: 28px;
  }

  nav {
    padding: 0 20px;
  }

  section {
    padding: 80px 0;
  }

  section::before {
    font-size: 50px;
    top: 60px;
  }

  section h4 {
    font-size: 20px;
  }

  #home {
    min-height: auto;
  }

  #home .container {
    padding: 80px 20px 120px;
  }

  #home .container .home-about h3 {
    font-size: 24px;
  }

  #home .container .home-about h2 {
    font-size: 50px;
  }

  #home .container .home-about p {
    font-size: 20px;
    margin: 20px 0;
  }

  #home .container .home-image img {
    width: 100%;
    max-width: 300px;
  }

  #home .container .home-social {
    width: calc(100% - 40px);
    padding: 12px 20px;
  }

  #home .container .home-social .icons {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  #home .container .home-social .icons .icon a {
    width: 50px;
    padding: 8px 12px;
  }

  #about .container,
  #services .container,
  #reviews .container,
  #skills .container,
  #contact .container {
    padding: 0 20px;
  }

  #about .about-info h2 {
    font-size: 28px;
  }

  #about .about-info h3 {
    font-size: 20px;
  }

  .about-right ul li {
    grid-template-columns: 100px 15px 1fr;
    font-size: 14px;
  }

  .services-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #skills .skills-about h2 {
    font-size: 28px;
  }

  .skill-row {
    grid-template-columns: 90px 1fr 45px;
    gap: 15px;
  }

  .skill-row h3 {
    font-size: 14px;
  }

  .percent {
    font-size: 14px;
  }

  .contact-form h3,
  .contact-info h3 {
    font-size: 24px;
  }

  .social-icons {
    justify-content: center;
  }

  footer h2 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  nav .logo a {
    font-size: 24px;
  }

  nav .logo .icon i {
    font-size: 28px;
  }

  #home .container .home-about h2 {
    font-size: 40px;
  }

  #home .container .home-about p {
    font-size: 18px;
  }

  button {
    min-width: 150px;
    padding: 10px 25px;
    font-size: 14px;
  }

  #about .about-info h2,
  #skills .skills-about h2 {
    font-size: 24px;
  }

  .service-card,
  .review-box {
    padding: 30px 20px;
  }

  section::before {
    font-size: 35px;
  }
}
