/* Styles used only on index.html. Shared styles are in site.css. */

.btn-override {
  position: static !important; /* Remove relative positioning */
}

.btn-override::after {
  display: none !important; /* Remove underline */
}

.btn-override:hover {
  color: inherit !important; /* Let button hover classes control the color */
}

/* First button - guava bg, white text -> lighter guava bg, white text */
.btn-primary {
  background-color: #c85a5e !important; /* rose */
  color: white !important;
}

.btn-primary:hover {
  background-color: #d9574c !important; /* coral */
  color: white !important;
}

/* Second button - transparent bg, guava text -> dark guava bg, white text */
.btn-secondary {
  background-color: transparent !important;
  color: #c85a5e !important; /* rose text */
  border: 1px solid #c85a5e !important; /* rose border */
}

.btn-secondary:hover {
  background-color: #c85a5e !important; /* rose */
  color: white !important;
  border-color: #c85a5e !important;
}

.section-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(157, 184, 141, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(157, 184, 141, 0.1), transparent);
  transition: left 0.6s ease;
}

.section-card:hover::before {
  left: 100%;
}

.section-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(157, 184, 141, 0.2);
  border-color: rgba(157, 184, 141, 0.4);
}

.section-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #F9D5D3 0%, var(--accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.section-card:hover .section-icon {
  transform: scale(1.1) rotate(5deg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-category {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border: 1px solid rgba(157, 184, 141, 0.1);
}

.skill-category:hover {
  transform: translateY(-4px);
  border-color: rgba(157, 184, 141, 0.3);
}

.skill-category h4 {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-list li {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.skill-list li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* Utility classes */
.bg-guava { background-color: #d9574c; }

.bg-guava:hover { background-color: #c85a5e; }

.border-guava { border-color: #c85a5e; }

.text-guava { color: #c85a5e; }

.text-guava2 { color: #e07a5a; }

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

.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 50px 40px;
  margin-bottom: 60px;
}

.color-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.color-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;             /* center icon */
  align-items: center;       /* vertical center */
  justify-content: center;   /* horizontal center */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-circle svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.color-circle:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Color-specific circles (use these if not using images) */
.home-color { background-color: var(--c-home); }

.experience-color { background-color: var(--c-exp); }

.story-color { background-color: var(--c-story); }

.portfolio-color { background-color: var(--c-portfolio); }

.worldview-color { background-color: var(--c-world); }

.contact-color { background-color: var(--c-contact); }

.palette-container {
  text-align: right;
  margin-top: 40px;
}

.palette-image {
  width: 200px;
  height: auto;
  max-width: 100%;
}

/* Responsive design */
@media (max-width: 900px) {
  .color-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
  }
}

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

  .color-circle,
  .color-image {
    width: 80px;
    height: 80px;
  }

  .title {
    font-size: 1.8em;
    letter-spacing: 2px;
  }

  .palette-container {
    text-align: center;
  }
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 15px; /* spacing on small screens */
}

/* Popup */
.popup {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  position: relative;
  overflow-y: auto;
  max-height: 90vh; /* allow scroll if too tall */
  opacity: 0;
  transform: scale(0.9);
  animation: fadeIn 0.4s ease forwards;
}

/* Fade-in animation */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Close button */
.close-btn {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 32px;          /* fixed width */
  height: 32px;         /* fixed height */
  display: flex;        /* center the X */
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;          /* white so it stands out */
  background: rgba(0,0,0,0.4);
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  border-radius: 4px;   /* slightly rounded edges; use 0 for sharp */
}

.close-btn:hover {
  color: #fff;
  background: rgba(0,0,0,0.6);
}

/* Typography */
.popup h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.popup p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .popup {
    padding: 15px;
  }

  .popup h2 {
    font-size: 1.2rem;
  }

  .popup p {
    font-size: 0.95rem;
  }
}
