/* --- Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1a0f3d;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed 0%, #b794f6 50%, #ff6ec7 100%);
  border-radius: 6px;
  border: 2px solid #1a0f3d;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b5cf6 0%, #c4b5fd 50%, #ff8fd6 100%);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #b794f6 #1a0f3d;
}

body {
  font-family: Nunito, sans-serif;
  background: #1a0f3d;
  background: linear-gradient(180deg, #251853 0%, #1a0f3d 50%, #0f0828 100%);
  background-attachment: scroll;
  min-height: 100vh;
  color: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  max-height: calc(100vh + 12rem);
  background: radial-gradient(ellipse at bottom, rgba(139, 92, 246, 0.35) 0%, rgba(109, 40, 217, 0.2) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* --- Header / Nav --- */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ff6ec7 0%, #b794f6 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-header nav {
  display: flex;
  gap: 1rem;
}

.nav-header nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-header nav a:hover {
  color: #9f7aea;
}

.nav-header nav a.active {
  background: rgba(0, 0, 0, 0.5);
}

/* Coming soon badge */
.coming-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.14rem 0.55rem;
  background: rgba(255,110,199,0.12) !important;
  color: #ffb4dc !important;
  border: 1px solid rgba(255,110,199,0.15) !important;
  border-radius: 999px !important;
  vertical-align: middle;
  font-weight: 600;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Coming soon card */
.coming-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(183,148,246,0.08);
  padding: 1.25rem;
  border-radius: 10px;
  max-width: 800px;
  color: #e9e6ff;
}
.coming-card h3 {
  margin: 0 0 0.5rem 0;
}
.coming-card .muted {
  color: rgba(255,255,255,0.7);
}

/* --- Hero Section --- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  margin-top: 5rem;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.content-box {
  position: relative;
  padding: 2.5rem 4rem 0rem 4rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 40px;
  width: calc(100vw - 100px);
  max-width: 1600px;
  background: transparent;
  backdrop-filter: blur(20px) brightness(1.1);
  -webkit-backdrop-filter: blur(20px) brightness(1.1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.second-box {
  margin-top: 15rem;
  padding: 2rem 2rem;
  display: block;
  width: 100vw;
  max-width: 100vw;
  border-radius: 0;
  border: none;
  background: #170d36;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
  justify-content: center;
}

.about-image {
  flex-shrink: 0;
}

.profile-pic {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(159, 122, 234, 0.5);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}

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

.second-box h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #fff;
  text-align: left;
  font-family: Poppins, sans-serif;
}

.second-box p {
  font-size: 1.05rem;
  color: #d4d4d8;
  line-height: 1.7;
  font-weight: 300;
  text-align: left;
  margin-bottom: 0.15rem;
  font-family: Nunito, sans-serif;
}

.underline {
  font-weight: 600;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #b794f6 0%, #7c3aed 100%);
}

/* Link styling */
.about-content a {
  color: #d4d4d8;
  text-decoration: none;
}

.about-content a:hover {
  color: #d4d4d8;
}

/* Tooltip */
.tooltip-wrapper {
  position: relative;
  cursor: help;
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 8px 12px;
  background: rgba(23, 13, 54, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(183, 148, 246, 0.3);
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(23, 13, 54, 0.95);
}

.tooltip-wrapper:hover .tooltip {
  opacity: 1;
}

.hero-content {
  max-width: 650px;
  margin-bottom: 4rem;
}

.hero-title {
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.Sakura {
  font-weight: 700;
  background: linear-gradient(135deg, #ff9ec8 0%, #ffb3d9 50%, #ffc4e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #d4d4d8;
  font-weight: 300;
}

.hero-description p {
  margin-bottom: 0.15rem;
}

.highlight-orange {
  color: #fb923c;
  font-weight: 600;
}

.highlight-blue {
  color: #60a5fa;
  font-weight: 600;
}

.highlight-purple {
  color: #c084fc;
  font-weight: 600;
}

.cta {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  color: #d4d4d8;
  font-weight: 300;
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 1.3rem;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
  background: rgba(159, 122, 234, 0.2);
  border-color: rgba(159, 122, 234, 0.3);
  transform: translateY(-2px);
}

/* --- Listening Section --- */
.listening-section {
  max-width: 400px;
  margin-bottom: -1rem;
}

.listening-section h3 {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #d4d4d8;
}

.spotify-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.album-art {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-name {
  font-size: 0.9rem;
  color: #d4d4d8;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-logo {
  font-size: 1.8rem;
  color: #1DB954;
  opacity: 0.95;
  flex-shrink: 0;
}

/* --- Code Brackets --- */
.code-brackets {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
}

.bracket-svg {
  width: 300px;
  height: 500px;
  filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.4));
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .content-box {
    flex-direction: column;
    align-items: center;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .code-brackets {
    margin-top: 2rem;
  }

  .bracket-svg {
    width: 250px;
    height: 400px;
  }

  .hero-title {
    font-size: 4.5rem;
  }

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

  .listening-section {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-header {
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .bracket-svg {
    width: 180px;
    height: 300px;
  }
}

/* --- About Section --- */
.about-box {
  margin-top: 2rem;
  padding: 2.5rem;
}

.about-section-inline {
  width: 100%;
}

.about-container-inline {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-image {
  flex-shrink: 0;
}

.profile-pic {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(159, 122, 234, 0.3);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #fff;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
  .about-container-inline {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .profile-pic {
    width: 150px;
    height: 150px;
  }
  
  .about-content h2 {
    font-size: 1.8rem;
  }
  
  .about-content p {
    font-size: 0.9rem;
  }
}

/* Projects Section */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3rem;
  font-family: 'Poppins', sans-serif;
}

/* View All Projects Button */
.view-all-projects {
  text-align: center;
  margin-top: 2rem;
}

.view-all-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem !important;
  background: rgba(183, 148, 246, 0.15) !important;
  border: 1px solid rgba(183, 148, 246, 0.3) !important;
  border-radius: 8px !important;
  color: #b794f6 !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: rgba(183, 148, 246, 0.25) !important;
  border-color: #b794f6 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(183, 148, 246, 0.3) !important;
  color: #b794f6 !important;
  text-decoration: none !important;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-card {
  background: rgba(30, 20, 60, 0.4);
  border: 1px solid rgba(183, 148, 246, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.1s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Holographic foil effect */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    250px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.015) 0%,
    rgba(255, 110, 199, 0.033) 2%,
    rgba(255, 110, 199, 0.032) 4%,
    rgba(255, 110, 199, 0.031) 6%,
    rgba(255, 110, 199, 0.03) 8%,
    rgba(255, 110, 199, 0.029) 10%,
    rgba(255, 110, 199, 0.028) 12%,
    rgba(183, 148, 246, 0.027) 14%,
    rgba(183, 148, 246, 0.0265) 16%,
    rgba(183, 148, 246, 0.026) 18%,
    rgba(183, 148, 246, 0.0255) 20%,
    rgba(183, 148, 246, 0.025) 22%,
    rgba(183, 148, 246, 0.024) 24%,
    rgba(183, 148, 246, 0.023) 26%,
    rgba(124, 58, 237, 0.022) 28%,
    rgba(124, 58, 237, 0.021) 30%,
    rgba(124, 58, 237, 0.02) 32%,
    rgba(124, 58, 237, 0.019) 34%,
    rgba(124, 58, 237, 0.018) 36%,
    rgba(124, 58, 237, 0.017) 38%,
    rgba(124, 58, 237, 0.016) 40%,
    rgba(124, 58, 237, 0.015) 42%,
    rgba(124, 58, 237, 0.014) 44%,
    rgba(124, 58, 237, 0.013) 46%,
    rgba(124, 58, 237, 0.012) 48%,
    rgba(124, 58, 237, 0.011) 50%,
    rgba(124, 58, 237, 0.010) 52%,
    rgba(124, 58, 237, 0.009) 54%,
    rgba(124, 58, 237, 0.008) 56%,
    rgba(124, 58, 237, 0.007) 58%,
    rgba(124, 58, 237, 0.006) 60%,
    rgba(124, 58, 237, 0.005) 62%,
    rgba(124, 58, 237, 0.0045) 64%,
    rgba(124, 58, 237, 0.004) 66%,
    rgba(124, 58, 237, 0.0035) 68%,
    rgba(124, 58, 237, 0.003) 70%,
    rgba(124, 58, 237, 0.0025) 72%,
    rgba(124, 58, 237, 0.002) 74%,
    rgba(124, 58, 237, 0.0015) 76%,
    rgba(124, 58, 237, 0.0012) 78%,
    rgba(124, 58, 237, 0.001) 80%,
    rgba(124, 58, 237, 0.0008) 82%,
    rgba(124, 58, 237, 0.0006) 84%,
    rgba(124, 58, 237, 0.0005) 86%,
    rgba(124, 58, 237, 0.0004) 88%,
    rgba(124, 58, 237, 0.0003) 90%,
    rgba(124, 58, 237, 0.00025) 92%,
    rgba(124, 58, 237, 0.0002) 94%,
    rgba(124, 58, 237, 0.00015) 96%,
    rgba(124, 58, 237, 0.0001) 98%,
    rgba(124, 58, 237, 0.00005) 99%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: color-dodge;
  filter: blur(35px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  border-color: rgba(183, 148, 246, 0.5);
  box-shadow: 0 8px 30px rgba(183, 148, 246, 0.2);
}

.card-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 110, 199, 0.05) 0%,
    rgba(255, 110, 199, 0.048) 2%,
    rgba(183, 148, 246, 0.046) 4%,
    rgba(183, 148, 246, 0.045) 6%,
    rgba(183, 148, 246, 0.044) 8%,
    rgba(183, 148, 246, 0.042) 10%,
    rgba(183, 148, 246, 0.041) 12%,
    rgba(183, 148, 246, 0.04) 14%,
    rgba(183, 148, 246, 0.039) 16%,
    rgba(183, 148, 246, 0.038) 18%,
    rgba(124, 58, 237, 0.037) 20%,
    rgba(124, 58, 237, 0.036) 22%,
    rgba(124, 58, 237, 0.035) 24%,
    rgba(124, 58, 237, 0.034) 26%,
    rgba(124, 58, 237, 0.033) 28%,
    rgba(124, 58, 237, 0.032) 30%,
    rgba(124, 58, 237, 0.031) 32%,
    rgba(124, 58, 237, 0.03) 34%,
    rgba(124, 58, 237, 0.029) 36%,
    rgba(124, 58, 237, 0.028) 38%,
    rgba(124, 58, 237, 0.027) 40%,
    rgba(124, 58, 237, 0.026) 42%,
    rgba(124, 58, 237, 0.025) 44%,
    rgba(124, 58, 237, 0.024) 46%,
    rgba(124, 58, 237, 0.023) 48%,
    rgba(124, 58, 237, 0.022) 50%,
    rgba(124, 58, 237, 0.021) 52%,
    rgba(124, 58, 237, 0.02) 54%,
    rgba(124, 58, 237, 0.019) 56%,
    rgba(124, 58, 237, 0.018) 58%,
    rgba(124, 58, 237, 0.017) 60%,
    rgba(124, 58, 237, 0.016) 62%,
    rgba(124, 58, 237, 0.015) 64%,
    rgba(124, 58, 237, 0.014) 66%,
    rgba(124, 58, 237, 0.013) 68%,
    rgba(124, 58, 237, 0.012) 70%,
    rgba(124, 58, 237, 0.011) 72%,
    rgba(124, 58, 237, 0.01) 74%,
    rgba(124, 58, 237, 0.009) 76%,
    rgba(124, 58, 237, 0.008) 78%,
    rgba(124, 58, 237, 0.007) 80%,
    rgba(124, 58, 237, 0.006) 82%,
    rgba(124, 58, 237, 0.005) 84%,
    rgba(124, 58, 237, 0.004) 86%,
    rgba(124, 58, 237, 0.003) 88%,
    rgba(124, 58, 237, 0.002) 90%,
    rgba(124, 58, 237, 0.0015) 92%,
    rgba(124, 58, 237, 0.001) 94%,
    rgba(124, 58, 237, 0.0007) 96%,
    rgba(124, 58, 237, 0.0005) 98%,
    rgba(124, 58, 237, 0.0001) 99%,
    transparent 100%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 0;
  mix-blend-mode: screen;
  filter: blur(40px);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: rgba(20, 15, 40, 0.6);
  position: relative;
  z-index: 1;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
  /* leave extra space at the bottom so absolutely-positioned buttons don't overlap content */
  padding-bottom: 3.75rem;
  position: relative;
  z-index: 1;
}

.project-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.project-date {
  font-size: 0.9rem;
  color: rgba(183, 148, 246, 0.8);
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  padding: 0.35rem 0.9rem;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  background: rgba(183, 148, 246, 0.3); /* Default fallback */
}

/* Language-specific colors based on data attributes */
.tech-tag[data-tech="html"] {
  background: linear-gradient(135deg, #e34c26 0%, #f06529 100%);
}

.tech-tag[data-tech="css"] {
  background: linear-gradient(135deg, #1572b6 0%, #33a9dc 100%);
}

.tech-tag[data-tech="js"] {
  background: linear-gradient(135deg, #f7df1e 0%, #f0db4f 100%);
  color: #000000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.tech-tag[data-tech="python"] {
  background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
}

.project-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #d4d4d8;
  margin-bottom: 1.5rem;
}

.project-card .project-info .view-project-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ff6ec7 0%, #b794f6 50%, #7c3aed 100%);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
}

.project-card .project-info .view-project-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(183, 148, 246, 0.4);
}

.project-card .project-info .view-project-btn.disabled {
  background: rgba(100, 100, 100, 0.3);
  cursor: not-allowed;
  opacity: 0.5;
  /* ensure disabled buttons stay positioned */
  position: absolute !important;
  bottom: 1.25rem !important;
  right: 1.25rem !important;
}

.project-card .project-info .view-project-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Positioning class for buttons placed directly in project-card */
.project-card .btn-positioned {
  position: absolute !important;
  bottom: 1.25rem !important;
  right: 1.25rem !important;
  z-index: 10 !important;
  margin: 0 !important;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ff6ec7 0%, #b794f6 50%, #7c3aed 100%);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card .btn-positioned:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(183, 148, 246, 0.4);
}

.project-card .btn-positioned.disabled {
  background: rgba(100, 100, 100, 0.3);
  cursor: not-allowed;
  opacity: 0.5;
}

.project-card .btn-positioned.disabled:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
}

/* Only on very small screens (phones), fall back to normal flow */
@media (max-width: 480px) {
  .project-card .project-info .view-project-btn {
    position: static !important;
    display: block;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
    right: auto !important;
    bottom: auto !important;
  }
}