:root {
  --primary-color: #042b5f;
  --secondary-color: #003399;
  --text-color: #333;
  --bg-color: #fff;
  --card-bg: #f9f9f9;
  --border-color: #eaeaea;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --glow-color: rgba(0, 102, 255, 0.2);
  --header-height: 100vh;
  --text-secondary-light: #4a5568;
  --text-secondary: var(--text-secondary-light);
  --accent-color: #0066ff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --design-color: #ac4f0c;
  --design-light: #ffa480;
  --programming-color: #003399;
  --programming-light: #4d94ff;
  --expert-badge: #ac4f0c;
  --advanced-badge: #003399;
  --intermediate-badge: #2c7a7b;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --border-radius: 8px;
  --card-padding: 2rem;
}

* {
  scrollbar-width: unset !important;
  -ms-overflow-style: unset !important;
}

.dark-theme {
  --primary-color: #ac4f0c;
  --secondary-color: #ffa480;
  --text-color: #e6e6e6;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --border-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --glow-color: rgba(77, 148, 255, 0.2);
  --accent-color: #ffa480;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --glow-color: rgba(77, 148, 255, 0.2);
  --design-color: #ffa480;
  --design-light: #ffcbb3;
  --programming-color: #4d94ff;
  --programming-light: #80b5ff;
  --expert-badge: #ffa480;
  --advanced-badge: #4d94ff;
  --intermediate-badge: #4fd1c5
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

.delay-600 {
  transition-delay: 0.6s;
}

.delay-700 {
  transition-delay: 0.7s;
}

.delay-800 {
  transition-delay: 0.8s;
}

.delay-900 {
  transition-delay: 0.9s;
}

.delay-1000 {
  transition-delay: 1s;
}

/* Header Section */
header {
  height: var(--header-height);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-color), var(--card-bg));
}

.ambient-light {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%,
      var(--glow-color) 0%,
      transparent 70%);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.logo {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 8px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.logo-text {
  background: linear-gradient(90deg,
      var(--primary-color),
      var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.logo-text::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--primary-color),
      var(--secondary-color));
  animation: line-animation 3s ease-in-out infinite;
}

@keyframes line-animation {
  0% {
    width: 0;
    left: 0;
  }

  50% {
    width: 100%;
  }

  100% {
    width: 0;
    left: 100%;
  }
}

.tagline {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 30px;
  opacity: 0;
  animation: fade-in 1s ease-out forwards 0.5s;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.moving-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.2;
  animation: float-animation linear infinite both;
}

@keyframes float-animation {
  0% {
    transform: translateY(100vh) translateX(0);
  }

  100% {
    transform: translateY(-10vh) translateX(20px);
  }
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--primary-color);
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-20px) translateX(-50%);
  }

  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

nav.scrolled {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 5px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.close-menu {
  display: none;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-color);
}

.theme-toggle-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.theme-toggle-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle-button i {
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.theme-toggle-button:active {
  transform: translateY(0);
}

.theme-status {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 2px 10px var(--shadow-color);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 98;
  pointer-events: none;
}

.theme-status.show {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  text-align: center !important;
  width: 100% !important;
  transform: none !important;
  left: 0 !important;
}

.section-title.fade-in-up {
  transform: translateY(40px) !important;
}

.section-title.fade-in-up.visible {
  transform: translateY(0) !important;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  left: 50%;
  transform: translateX(-50%);
}

.section-title:hover::after {
  width: 100px;
}

/* About */
#about {
  position: relative;
  padding: 80px 0;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow: hidden;
  z-index: 1;
}

.space-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 20%, var(--accent-color, #0066ff) 1px, transparent 1px),
    radial-gradient(circle at 40% 40%, var(--accent-color, #0066ff) 1px, transparent 1px),
    radial-gradient(circle at 70% 10%, var(--accent-color, #0066ff) 1px, transparent 1px),
    radial-gradient(circle at 90% 40%, var(--accent-color, #0066ff) 1px, transparent 1px),
    radial-gradient(circle at 30% 70%, var(--accent-color, #0066ff) 1px, transparent 1px),
    radial-gradient(circle at 60% 90%, var(--accent-color, #0066ff) 1px, transparent 1px),
    radial-gradient(circle at 90% 80%, var(--accent-color, #0066ff) 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.2;
  z-index: -1;
  animation: twinkling 15s linear infinite;
  pointer-events: none;
}

.space-particles-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 25% 15%, var(--primary-color, #042b5f) 1px, transparent 1px),
    radial-gradient(circle at 55% 35%, var(--primary-color, #042b5f) 1px, transparent 1px),
    radial-gradient(circle at 85% 25%, var(--primary-color, #042b5f) 1px, transparent 1px),
    radial-gradient(circle at 15% 55%, var(--primary-color, #042b5f) 1px, transparent 1px),
    radial-gradient(circle at 45% 75%, var(--primary-color, #042b5f) 1px, transparent 1px),
    radial-gradient(circle at 75% 95%, var(--primary-color, #042b5f) 1px, transparent 1px);
  background-size: 150px 150px;
  opacity: 0.15;
  z-index: -1;
  animation: twinkling 20s linear infinite reverse;
  pointer-events: none;
}

.space-particles-3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath stroke='%23003399' stroke-opacity='0.1' stroke-width='0.5' d='M30 30h30v30H30z'/%3E%3Cpath stroke='%230066ff' stroke-opacity='0.1' stroke-width='0.5' d='M0 0h30v30H0z M30 0h30v30H30z M0 30h30v30H0z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: 2px;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.about-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
}

.profile-photo-container {
  position: relative;
  width: 300px;
  height: 300px;
  animation: float 6s ease-in-out infinite;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px var(--shadow-color),
    0 0 20px var(--glow-color);
  transition: all 0.5s ease;
}

.profile-photo:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-color),
    0 0 30px var(--glow-color);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.profile-photo:hover img {
  filter: grayscale(0%);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(var(--primary-color-rgb, 4, 43, 95), 0.2),
      rgba(var(--secondary-color-rgb, 0, 51, 153), 0.2));
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.profile-photo:hover .overlay {
  opacity: 0;
}

.tech-elements {
  position: absolute;
  top: -30px;
  left: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  z-index: -1;
  pointer-events: none;
}

.tech-element {
  position: absolute;
  font-size: 1.5rem;
  color: var(--text-color);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  box-shadow: 0 5px 15px var(--shadow-color);
  animation: float-element 8s ease-in-out infinite;
}

.code-element {
  top: 10%;
  right: -15px;
  animation-delay: 0s;
  border-color: var(--programming-color);
  color: var(--programming-color);
}

.ux-element {
  bottom: 15%;
  right: 10%;
  animation-delay: 1s;
  border-color: var(--design-color);
  color: var(--design-color);
}

.ui-element {
  top: 60%;
  left: -15px;
  animation-delay: 2s;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.design-element {
  top: -15px;
  left: 30%;
  animation-delay: 3s;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.about-text {
  max-width: 550px;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in 1s forwards;
}

.about-text p:nth-child(1) {
  animation-delay: 0.3s;
}

.about-text p:nth-child(2) {
  animation-delay: 0.6s;
}

.about-text p:nth-child(3) {
  animation-delay: 0.9s;
}

.about-text strong {
  color: var(--accent-color);
  font-weight: 700;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes float-element {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(10px, -10px) rotate(5deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes twinkling {
  0% {
    opacity: 0.1;
    transform: translateY(0);
  }

  50% {
    opacity: 0.3;
    transform: translateY(-10px);
  }

  100% {
    opacity: 0.1;
    transform: translateY(0);
  }
}

.tech-element::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.5;
  z-index: -1;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo-container {
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  #about {
    padding: 60px 0;
  }

  .profile-photo-container {
    width: 200px;
    height: 200px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .about-text p {
    font-size: 1rem;
  }

  .tech-element {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Service Section */
.services-section {
  padding: 5rem 0;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--glow-color) 10%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.section-title {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 1rem auto 0;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  perspective: 1000px;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid var(--border-color);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transform: translateX(-100%);
  transition: all 0s ease;
  z-index: 2;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-15px) rotateY(5deg);
  box-shadow: 0 20px 40px var(--shadow-color),
    0 5px 15px rgba(var(--primary-color-rgb), 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  transform: translateX(100%);
  transition: all 1.2s ease;
}

.service-icon-wrapper {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.5rem;
  position: relative;
  perspective: 1000px;
}

.service-icon {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px var(--shadow-color);
  position: relative;
  overflow: hidden;
  transition: transform 0.6s ease;
}

.service-card:hover .service-icon {
  transform: rotateY(180deg);
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
  }
}

.service-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.service-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  /* height: 2px;
  background: var(--accent-color);
  transition: all 0.5s ease; */
}

.service-card:hover h3::after {
  width: 80%;
  left: 10%;
}

.service-card p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.service-features {
  list-style-type: none;
  padding: 0;
  margin: 0 0 1.5rem;
  transition: transform 0.5s ease;
}

.service-card:hover .service-features {
  transform: translateY(-5px);
}

.service-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  transition: all 0.3s ease;
}

.service-card:hover .service-features li::before {
  color: var(--primary-color);
  transform: scale(1.2);
}

@keyframes featureSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-card:hover .service-features li {
  animation: featureSlideIn 0.5s forwards;
  opacity: 0;
}

.service-card:hover .service-features li:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:hover .service-features li:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:hover .service-features li:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:hover .service-features li:nth-child(4) {
  animation-delay: 0.4s;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.service-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  width: 100%;
  margin-top: auto;
}

.service-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
  transform: translateY(-3px);
}

.web-dev .service-icon {
  background-color: var(--bg-color);
  border: 2px solid var(--programming-color);
}

.code-animation {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--programming-color);
  text-align: left;
  padding: 0.5rem;
  width: 90%;
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.code-animation span {
  opacity: 0;
  transform: translateY(10px);
  animation: code-appear 4s infinite;
  margin-bottom: 2px;
}

.code-animation span:nth-child(2) {
  animation-delay: 0.5s;
  margin-left: 1rem;
}

.code-animation span:nth-child(3) {
  animation-delay: 1s;
  margin-left: 1rem;
}

.code-animation span:nth-child(4) {
  animation-delay: 1.5s;
}

.tag {
  color: var(--accent-color);
}

@keyframes code-appear {

  0%,
  100% {
    opacity: 0;
    transform: translateY(10px);
  }

  10%,
  90% {
    opacity: 1;
    transform: translateY(0);
  }
}

.design .service-icon {
  background-color: var(--bg-color);
  border: 2px solid var(--design-color);
}

.design-animation {
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.shape {
  position: absolute;
  animation: float 4s infinite ease-in-out;
}

.circle {
  width: 30px;
  height: 30px;
  background-color: var(--design-color);
  border-radius: 50%;
  left: 20%;
  top: 20%;
  opacity: 0.7;
  animation-delay: 0s;
}

.square {
  width: 25px;
  height: 25px;
  background-color: var(--accent-color);
  right: 20%;
  top: 20%;
  opacity: 0.7;
  animation-delay: 1s;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 30px solid var(--primary-color);
  left: 20%;
  bottom: 20%;
  opacity: 0.7;
  animation-delay: 2s;
}

.rectangle {
  width: 40px;
  height: 20px;
  background-color: var(--secondary-color);
  right: 20%;
  bottom: 20%;
  opacity: 0.7;
  animation-delay: 3s;
}

.content-creation .service-icon {
  background-color: var(--bg-color);
  border: 2px solid var(--accent-color);
}

.content-animation {
  width: 80%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.document {
  width: 70%;
  height: 80%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.doc-line {
  height: 5px;
  background-color: var(--accent-color);
  opacity: 0.7;
  border-radius: 2px;
  width: 90%;
  margin: 3px auto;
}

.doc-line.short {
  width: 60%;
}

.cursor {
  position: absolute;
  right: 15%;
  top: 15%;
  width: 3px;
  height: 15px;
  background-color: var(--accent-color);
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.1;
  }

  25% {
    transform: translateY(-15px) translateX(15px) scale(1.1);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-30px) translateX(0) scale(0.9);
    opacity: 0.5;
  }

  75% {
    transform: translateY(-15px) translateX(-15px) scale(1.2);
    opacity: 0.3;
  }
}

@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-container .service-card {
  opacity: 0;
  animation: cardAppear 0.8s forwards;
}

.services-container .service-card:nth-child(1) {
  animation-delay: 0.2s;
}

.services-container .service-card:nth-child(2) {
  animation-delay: 0.4s;
}

.services-container .service-card:nth-child(3) {
  animation-delay: 0.6s;
}

.tilt-effect {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.tilt-effect .service-icon-wrapper {
  transform: translateZ(30px);
  transition: transform 0.5s ease;
}

.tilt-effect h3 {
  transform: translateZ(20px);
  transition: transform 0.5s ease;
}

.tilt-effect p {
  transform: translateZ(10px);
  transition: transform 0.5s ease;
}

.service-card .corner-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0;
  transition: all 0.5s ease;
}

.service-card .dot-top-left {
  top: 10px;
  left: 10px;
}

.service-card .dot-top-right {
  top: 10px;
  right: 10px;
}

.service-card .dot-bottom-left {
  bottom: 10px;
  left: 10px;
}

.service-card .dot-bottom-right {
  bottom: 10px;
  right: 10px;
}

.service-card:hover .corner-dot {
  opacity: 0.8;
  box-shadow: 0 0 8px var(--primary-color);
}

.scroll-animate {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.17, 0.67, 0.3, 0.96);
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scroll-animate:nth-child(1).animated {
  transition-delay: 0.1s;
}

.scroll-animate:nth-child(2).animated {
  transition-delay: 0.3s;
}

.scroll-animate:nth-child(3).animated {
  transition-delay: 0.5s;
}

@media screen and (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-icon-wrapper {
    width: 90px;
    height: 90px;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-cta {
    padding: 2rem;
  }

  .cta-content h3 {
    font-size: 1.7rem;
  }

  .service-card {
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .service-card:hover {
    transform: translateY(-10px);
  }

  .tilt-effect {
    transform: none !important;
  }

  .tilt-effect .service-icon-wrapper,
  .tilt-effect h3,
  .tilt-effect p {
    transform: none !important;
  }
}

/* CTA */
.services-cta {
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: all 0.4s ease-in-out;
}

.services-cta:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.15;
}

.bg-circle-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-color);
  top: -150px;
  left: -150px;
  animation: float 15s ease-in-out infinite;
}

.bg-circle-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-color);
  bottom: -200px;
  right: -200px;
  animation: float 20s ease-in-out infinite alternate;
}

.wave {
  position: absolute;
  width: 150%;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  left: -25%;
  bottom: -200px;
  border-radius: 100%;
  animation: waveAnimation 15s infinite linear;
  z-index: 1;
}

.wave-2 {
  height: 280px;
  background: rgba(255, 255, 255, 0.03);
  bottom: -210px;
  animation: waveAnimation2 18s infinite linear;
}

.cta-inner {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0;
}

.cta-content {
  flex: 1;
  color: #fff;
  padding: 4rem;
  position: relative;
}

.cta-content h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUpCta 0.6s ease forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUpCta 0.6s 0.2s ease forwards;
}

.cta-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUpCta 0.6s 0.4s ease forwards;
}

.btn-wrapper {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.btn-wrapper::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  filter: blur(10px);
  z-index: -1;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-wrapper:hover::after {
  opacity: 1;
  transform: scale(1);
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-color);
  background-color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  z-index: 1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-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.7s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
  padding-right: 2.25rem;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn svg {
  transition: var(--transition);
}

.cta-btn:hover svg {
  transform: translateX(5px);
}

.or-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.cta-secondary {
  text-decoration: none;
  color: white;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.cta-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-secondary:hover::after {
  transform: scaleX(1);
}

.cta-image {
  width: 40%;
  padding: 3rem 3rem 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/3;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUpCta 0.6s 0.6s ease forwards;
  transition: var(--transition);
}

.image-container:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: white;
  text-align: center;
}

.img-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  color: white;
  animation: pulseCta 3s infinite;
}

.img-text {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

@keyframes fadeInUpCta {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-20px, 20px);
  }

  50% {
    transform: translate(20px, -20px);
  }

  75% {
    transform: translate(20px, 20px);
  }
}

@keyframes waveAnimation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes waveAnimation2 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

@keyframes pulseCta {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media screen and (max-width: 1024px) {
  .cta-content {
    padding: 3rem;
  }

  .cta-image {
    padding: 2rem 2rem 2rem 0;
  }
}

@media screen and (max-width: 768px) {
  .cta-inner {
    flex-direction: column;
  }

  .cta-content {
    width: 100%;
    padding: 3rem 2rem;
    text-align: center;
  }

  .cta-action {
    justify-content: center;
  }

  .cta-image {
    width: 100%;
    padding: 4px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .services-cta:hover {
    transform: translateY(-5px);
  }
}

@media screen and (max-width: 480px) {
  .services-cta {
    margin: 2rem auto;
  }

  .cta-content {
    padding: 2rem 1.5rem;
  }

  .cta-content h3 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-action {
    flex-direction: column;
    align-items: center;
  }

  .or-text {
    margin: 0.5rem 0;
  }
}

/* Skill Categories */
.profile-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
  /* border-bottom: 1px solid var(--border-color); */
}

.profile-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
}

.theme-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-color);
}

/* skills  */
.skills-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 7px;
}

.skill-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  min-height: 210px;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--shadow-color), 0 0 15px var(--glow-color);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: all 0.3s ease;
}

.web-dev::before {
  background: linear-gradient(90deg, var(--programming-color), var(--programming-light));
}

.ui-ux::before {
  background: linear-gradient(90deg, var(--design-color), var(--design-light));
}

.programming::before {
  background: linear-gradient(90deg, var(--programming-color), var(--programming-light));
}

.design::before {
  background: linear-gradient(90deg, var(--design-color), var(--design-light));
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
}

.skill-icon svg {
  width: 50px;
  height: 50px;
  fill: currentColor;
}

.web-dev .skill-icon {
  color: var(--programming-color);
}

.ui-ux .skill-icon {
  color: var(--design-color);
}

.programming .skill-icon {
  color: var(--programming-color);
}

.design .skill-icon {
  color: var(--design-color);
}

.skill-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.skill-description {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.skill-tag.expert {
  background-color: var(--expert-badge);
}

.skill-tag.advanced {
  background-color: var(--advanced-badge);
}

.skill-tag.intermediate {
  background-color: var(--intermediate-badge);
}

.skill-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-level {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.skill-level-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  margin-right: 5px;
  transition: all 0.3s ease;
}

.dot-filled {
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.web-dev .dot-filled {
  background-color: var(--programming-color);
}

.ui-ux .dot-filled {
  background-color: var(--design-color);
}

.programming .dot-filled {
  background-color: var(--programming-color);
}

.design .dot-filled {
  background-color: var(--design-color);
}

.skill-card:hover .skill-dot.dot-filled {
  animation: pulseDot 1s infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 5s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .skill-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .skills-section {
    padding: 3rem 1rem;
  }

  .skill-card {
    padding: 1.5rem;
  }
}

/* Client */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.carousel-item {
  flex: 0 0 auto;
  margin: 0 20px;
  width: 180px;
  height: 180px;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  background-color: transparent;
}

.carousel-item:hover {
  transform: translateY(-10px) scale(1.05);
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  transition: background-color 0.4s ease;
  z-index: 1;
}

.carousel-item:hover::before {
  background-color: rgba(255, 255, 255, 0.1);
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: transparent;
  mix-blend-mode: multiply;
  filter: grayscale(100%) brightness(0.5);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.carousel-item:hover .carousel-img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.1);
  mix-blend-mode: normal;
}

.carousel-item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 2;
  text-align: center;
}

.carousel-item:hover .carousel-item-title {
  opacity: 1;
  transform: translateY(0);
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-180px * 8 - 40px * 8));
  }
}

.carousel-track-inner {
  display: flex;
}

@media (max-width: 768px) {
  .carousel-item {
    width: 140px;
    height: 140px;
    margin: 0 15px;
  }

  .partners-section {
    padding: 40px 15px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-140px * 8 - 30px * 8));
    }
  }
}

/* Portfolio */
#portfolio {
  padding: 100px 0;
  background-color: var(--card-bg);
  position: relative;
  overflow: hidden;
}

#portfolio::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0.03;
  z-index: 0;
}

#portfolio::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  opacity: 0.02;
  z-index: 0;
}

.portfolio-wrapper {
  position: relative;
  margin-top: 30px;
  z-index: 1;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 17px;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s forwards;
  position: relative;
  z-index: 2;
  text-align: center;
}

.filter-button {
  padding: 12px 24px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 40px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.filter-button:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 51, 153, 0.15);
}

.filter-button:hover::before {
  opacity: 1;
}

.filter-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  transition: left 0.7s ease;
  z-index: 2;
  opacity: 0;
}

.filter-button:hover::after {
  left: 100%;
  opacity: 1;
}

.filter-button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 5px 15px rgba(0, 51, 153, 0.2);
}

.portfolio-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(40px);
  background-color: var(--bg-color);
  -webkit-tap-highlight-color: transparent;
}

.portfolio-item.visible {
  animation: fadeInUp 0.8s forwards;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.portfolio-img {
  position: relative;
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-links {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.1s;
  z-index: 5;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.portfolio-item:hover .portfolio-links {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-link {
  width: 42px;
  height: 42px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  cursor: pointer;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  touch-action: manipulation;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.portfolio-link:hover {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-info {
  padding: 25px;
  background-color: var(--bg-color);
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
}

.portfolio-category {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 51, 153, 0.1);
}

.portfolio-item:hover .portfolio-category {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 51, 153, 0.15);
}

.portfolio-info h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: 700;
  transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-info h3 {
  color: var(--primary-color);
}

.portfolio-info p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.7;
}

.portfolio-item.filtered-out {
  animation: fadeOutDown 0.5s forwards;
}

.portfolio-item.filtered-in {
  animation: fadeInUp 0.6s forwards;
}

.no-results {
  text-align: center;
  grid-column: 1 / -1;
  padding: 40px 20px;
  font-size: 18px;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.no-results svg {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
  .no-results svg {
    width: 50px;
    height: 50px;
  }

  .no-results h3 {
    font-size: 18px;
  }

  .no-results p {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .no-results-icon {
    width: 50px;
    height: 50px;
  }

  .no-results {
    padding: 30px 15px;
    font-size: 16px;
  }
}

.hidden {
  display: none;
}

.more-portfolio {
  display: block;
  width: 220px;
  margin: 40px auto 0;
  padding: 15px 0;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  text-align: center;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 51, 153, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUpPortfolio 0.8s forwards;
  animation-delay: 0.3s;
}

.more-portfolio:hover {
  box-shadow: 0 12px 25px rgba(0, 51, 153, 0.3);
  transform: translateY(-5px);
}

.more-portfolio::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  transform: rotate(45deg);
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.more-portfolio:hover::after {
  left: 100%;
}

@keyframes fadeInUpPortfolio {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInPortfolio {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .portfolio-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .portfolio-filters {
    flex-direction: row;
    padding: 2px;
    gap: 2px;
    overflow-x: auto;
    justify-content: center;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    scroll-snap-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 5px;
    padding: 10px 18px;
    font-size: 14px;
  }

  .portfolio-img img {
    height: 220px;
  }

  .portfolio-items {
    justify-items: center;
  }

  .portfolio-item {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .portfolio-items {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .portfolio-item {
    max-width: 400px;
    margin: 0 auto;
  }

  .filter-button {
    padding: 8px 16px;
    font-size: 13px;
  }

  .portfolio-info {
    padding: 20px;
  }

  .portfolio-info h3 {
    font-size: 18px;
  }

  .portfolio-info p {
    font-size: 14px;
  }

  .portfolio-category {
    font-size: 11px;
    padding: 5px 12px;
  }

  .more-portfolio {
    width: 180px;
    padding: 12px 0;
    font-size: 15px;
  }
}

@supports (-webkit-touch-callout: none) {
  .portfolio-link {
    min-width: 42px;
    min-height: 42px;
  }

  .portfolio-links {
    will-change: transform, opacity;
  }
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

.filter-button,
.more-portfolio {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
  z-index: 0;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Blog */
#article {
  margin-top: 37px;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow-color), 0 0 15px var(--glow-color);
}

.card-content {
  padding: var(--card-padding);
}

.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: fadeIn 0.5s ease;
}

.tag-design {
  background-color: var(--design-light);
  color: var(--design-color);
}

.tag-programming {
  background-color: var(--programming-light);
  color: var(--programming-color);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.4s ease;
}

.blog-card:hover .card-title::after {
  width: 100%;
}

.card-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 600;
  gap: 0.5rem;
  transition: transform 0.3s ease, gap 0.3s ease;
  position: relative;
}

.read-more svg {
  transition: transform 0.3s ease;
}

.read-more:hover {
  gap: 0.8rem;
}

.read-more:hover svg {
  transform: translateX(3px);
}

.read-more::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.read-more:hover::after {
  width: 100%;
}

.full-article {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.full-article.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.article-content {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.article-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.article-content h3 {
  margin: 1.5rem 0 1rem;
  color: var(--primary-color);
}

.article-content ul,
.article-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.close-button {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 600;
  cursor: pointer;
  gap: 0.5rem;
  transition: gap 0.3s ease;
  margin-top: 1rem;
}

.close-button svg {
  transition: transform 0.3s ease;
}

.close-button:hover {
  gap: 0.8rem;
}

.close-button:hover svg {
  transform: translateX(-3px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  from {
    width: 0;
  }

  to {
    width: 60px;
  }
}

.blog-card {
  animation: cardEnter 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.blog-card:nth-child(1) {
  animation-delay: 0.2s;
}

.blog-card:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

.hidden-card {
  display: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 102, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
  }
}

@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 2rem;
  }

  .blog-subtitle {
    font-size: 1rem;
  }

  .blog-cards {
    grid-template-columns: 1fr;
  }

  .card-content {
    padding: 1.5rem;
  }
}

pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 1rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 1rem 0;
}

code {
  font-family: 'Courier New', Courier, monospace;
  color: var(--primary-color);
}

/* Contact Section */
#contact {
  padding: 100px 0;
  position: relative;
}

.contact-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.contact-text {
  flex: 1;
}

.contact-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.contact-info {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.contact-item-content h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-item-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Footer */
footer {
  padding: 30px 0;
  background-color: var(--card-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-content p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: inline-block;
}

.ambient-move {
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(circle,
      var(--glow-color) 0%,
      transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -5px 0 15px var(--shadow-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    z-index: 101;
    padding: 20px 0;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .portfolio-items {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .logo {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .close-menu {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
  }
}

@media (max-width: 576px) {
  .portfolio-items {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .theme-toggle-button {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .theme-status {
    bottom: 80px;
    right: 20px;
  }
}