/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

/* Cursor Light Effect */
.cursor-light {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(100, 150, 220, 0.20) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  z-index: 1;
  mix-blend-mode: screen;
}

/* Background */
body {
  background: #000000;
  background: linear-gradient(150deg, #000000 0%, #131c2f 50%, #000000 100%);
  min-height: 100vh;
}

/* Starfield Background Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 50% 50%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1px 1px at 33% 85%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 15% 55%, rgba(255, 255, 255, 0.12), transparent);
  background-size: 200% 200%;
  background-position: 50% 50%;
  pointer-events: none;
  z-index: 1;
}

/* Main Container */
.MainScreen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 40px;
  position: relative;
  z-index: 2;
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
}

.navigation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, 
    #101828e6 0%, 
    #101828b3 50%, 
    #1018284d 80%, 
    #10182800 100%);
  z-index: -1;
  backdrop-filter: blur(10px);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-container {
  width: 100px;
  height: 100px;
  border-radius: 100%;
  border: 6px solid #636D7D;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.logo-link:hover .logo-container {
  transform: scale(1.05);
}

.logo-img {
  width: 250px;
  height: auto;
  position: relative;
  right: 60px;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(150, 180, 220, 0.3))
          drop-shadow(0 0 40px rgba(150, 180, 220, 0.2));
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: -30px;
}

.nav-link {
  color: #9aa1af;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  text-shadow: -4px 4px 15px rgba(250, 246, 229, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #51a2ff;
}

.nav-link.active {
  color: #51a2ff;
}

/* Title Section */
.title-section {
  margin-top: 80px;
  text-align: center;
  margin-bottom: 30px;
}

.page-title {
  color: #FDFDFD;
  font-size: 48px;
  font-weight: 600;
  text-shadow: -4px 4px 15px rgba(238, 238, 238, 0.3);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.title-underline {
  width: 100px;
  height: 3.5px;
  background: linear-gradient(to right, #00D492, #51A2FF);
  margin: 0 auto 18px;
  border-radius: 2px;
}

.page-subtitle {
  color: #B8BDC8;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  max-width: 620px;
  margin: 0 auto;
  letter-spacing: 0.2px;
}

/* Expertise Cards */
.expertise-cards {
  display: flex;
  gap: 60px;
  margin-top: 35px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
}

.expertise-card {
  width: 474px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
}

.expertise-card.animate {
  animation: jumpIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}


.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 0 60px 15px rgba(81, 162, 255, 0.25),
    0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(81, 162, 255, 0.3);
}

.card-image-container {
  width: 100%;
  height: 229px;
  position: relative;
  overflow: hidden;
}

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

.expertise-card:hover .card-image {
  transform: scale(1.1);
}

.card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.card-content {
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}

.card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: #FFFFFF;
  transition: all 0.3s ease;
}

.expertise-card:hover .card-icon svg {
  stroke: #51A2FF;
  filter: drop-shadow(0 0 8px rgba(81, 162, 255, 0.6));
}

.card-title {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 500;
  text-shadow: -5px 5px 15px rgba(250, 246, 229, 0.3);
  flex: 1;
  margin: 0;
}

.card-view-btn {
  width: 40px;
  height: 40px;
  background: rgba(38, 38, 38, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  padding: 0;
}

.card-view-btn:hover {
  background: rgba(81, 162, 255, 0.2);
  border-color: rgba(81, 162, 255, 0.4);
  transform: scale(1.1);
}

.card-view-btn svg {
  width: 25px;
  height: 25px;
}

.card-description {
  color: #9AA1AF;
  font-size: 16px;
  line-height: 25px;
  margin-bottom: 24px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(81, 162, 255, 0.2);
  border: 1px solid rgba(81, 162, 255, 0.3);
  border-radius: 16777200px;
  padding: 5px 12px;
  color: #51A2FF;
  font-size: 12.25px;
  font-weight: 400;
  letter-spacing: -0.0179px;
  transition: all 0.3s ease;
}

.expertise-card:hover .tag {
  background: rgba(81, 162, 255, 0.3);
  border-color: rgba(81, 162, 255, 0.5);
  transform: translateY(-2px);
}

/* GitHub Button */
.github-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(81, 162, 255, 0.15);
  border: 2px solid rgba(81, 162, 255, 0.4);
  border-radius: 50px;
  color: #51A2FF;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.github-button.animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

.github-button:hover::before {
  left: 100%;
}

.github-button:hover {
  background: rgba(81, 162, 255, 0.25);
  border-color: rgba(81, 162, 255, 0.6);
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px rgba(81, 162, 255, 0.3),
    0 0 40px rgba(81, 162, 255, 0.2);
}

.github-button svg:first-child {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.github-button svg:last-child {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.github-button:hover svg:first-child {
  transform: rotate(360deg);
}

.github-button:hover svg:last-child {
  transform: translateX(4px);
}

.github-button span {
  position: relative;
  z-index: 1;
}

/* Technologies Section */
.technologies-section {
  text-align: center;
  margin-bottom: 50px;
  width: 100%;
  max-width: 1300px;
}

.technologies-title {
  color: #FDFDFD;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  text-shadow: -4px 4px 15px rgba(238, 238, 238, 0.3);
}

.technologies-underline {
  width: 84px;
  height: 3.5px;
  background: linear-gradient(to right, #00D492, #51A2FF);
  margin: 0 auto 28px;
  border-radius: 2px;
}

.technologies-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.technologies-list:hover {
  opacity: 1;
}

.tech-tag {
  background: rgba(81, 162, 255, 0.2);
  border: 1px solid rgba(81, 162, 255, 0.3);
  border-radius: 8.75px;
  padding: 8.5px 16px;
  color: #51A2FF;
  font-size: 12.25px;
  font-weight: 400;
  letter-spacing: -0.0179px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.tech-tag.animate {
  animation: fadeInUp 0.5s ease-out forwards;
}

.tech-tag:nth-child(1).animate { animation-delay: 0s; }
.tech-tag:nth-child(2).animate { animation-delay: 0.05s; }
.tech-tag:nth-child(3).animate { animation-delay: 0.1s; }
.tech-tag:nth-child(4).animate { animation-delay: 0.15s; }
.tech-tag:nth-child(5).animate { animation-delay: 0.2s; }
.tech-tag:nth-child(6).animate { animation-delay: 0.25s; }
.tech-tag:nth-child(7).animate { animation-delay: 0.3s; }
.tech-tag:nth-child(8).animate { animation-delay: 0.35s; }
.tech-tag:nth-child(9).animate { animation-delay: 0.4s; }
.tech-tag:nth-child(10).animate { animation-delay: 0.45s; }
.tech-tag:nth-child(11).animate { animation-delay: 0.5s; }
.tech-tag:nth-child(12).animate { animation-delay: 0.55s; }
.tech-tag:nth-child(13).animate { animation-delay: 0.6s; }
.tech-tag:nth-child(14).animate { animation-delay: 0.65s; }

.tech-tag:hover {
  background: rgba(81, 162, 255, 0.35);
  border-color: rgba(81, 162, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(81, 162, 255, 0.3);
}

/* Copyright */
.Copyright {
  color: #7B8594;
  font-size: 15px;
  font-weight: 300;
  text-align: center;
  margin-top: 50px;
  letter-spacing: 0.2px;
}

@keyframes jumpIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive - Tablets */
@media (max-width: 1024px) {
  .expertise-cards {
    gap: 40px;
  }
  
  .navigation {
    padding: 15px 30px;
  }
  
  .nav-links {
    gap: 30px;
  }
  
  .nav-link {
    font-size: 16px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .MainScreen {
    padding: 20px 15px 40px;
  }

  .navigation {
    flex-direction: column;
    gap: 20px;
    padding: 15px 25px;
  }

  .logo-circle {
    width: 80px;
    height: 80px;
  }

  .logo-container {
    width: 80px;
    height: 80px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-link {
    font-size: 16px;
  }

  .title-section {
    margin-top: 150px;
    margin-bottom: 25px;
  }

  .page-title {
    font-size: 36px;
  }

  .page-subtitle {
    font-size: 15px;
    line-height: 22px;
    padding: 0 10px;
  }

  .expertise-cards {
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 40px;
  }

  .expertise-card {
    width: 100%;
    max-width: 420px;
  }

  .card-content {
    padding: 18px;
  }

  .card-title {
    font-size: 19px;
  }

  .card-description {
    font-size: 14px;
    line-height: 22px;
  }

  .technologies-title {
    font-size: 26px;
  }

  .technologies-list {
    gap: 8px;
    padding: 0 10px;
  }

  .tech-tag {
    font-size: 11px;
    padding: 7px 13px;
  }

  .Copyright {
    font-size: 14px;
    margin-top: 40px;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .page-title {
    font-size: 32px;
  }

  .page-subtitle {
    font-size: 14px;
  }

  .expertise-card {
    width: 100%;
  }

  .card-header {
    gap: 10px;
  }

  .card-title {
    font-size: 17px;
  }

  .card-view-btn {
    width: 35px;
    height: 35px;
  }

  .card-view-btn svg {
    width: 20px;
    height: 20px;
  }

  .technologies-title {
    font-size: 24px;
  }
}