/*
 * LICENSE: This file is part of the SideQuest Tech theme.
 * Copyright (c) SideQuest Philippines. All rights reserved.
 */
:root {
  --portfolio-bg: #000000;
  --portfolio-accent: #9247d7;
  --portfolio-text: #ffffff;
  --portfolio-card-bg: rgba(255, 255, 255, 0.05);
}

body,
body.page-template-page-portfolio,
body.page-portfolio {
  background-color: var(--portfolio-bg);
  color: var(--portfolio-text);
}

.portfolio-hero {
  height: 60vh;
  min-height: 400px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(146, 71, 215, 0.2) 0%,
    rgba(7, 7, 45, 0) 70%
  );
  z-index: 0;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--portfolio-accent);
  font-weight: 700;
  margin-bottom: 15px;
  display: block;
}

.hero-title {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  background: linear-gradient(to right, #fff, #e6c1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
  margin-top: 80px;
}

.portfolio-item {
  background: var(--portfolio-card-bg);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(146, 71, 215, 0.5);
}

.portfolio-image-wrapper {
  height: 250px;
  position: relative;
  overflow: hidden;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, var(--accent-color), var(--primary-color));
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 7, 45, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.overlay-content {
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.portfolio-item:hover .overlay-content {
  transform: translateY(0);
}

.project-cat {
  font-size: 0.75rem;
  color: var(--portfolio-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  font-weight: 700;
  display: block;
}

.project-title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.5;
  max-width: 90%;
}

.btn-link {
  background: #fff;
  color: #07072d;
  padding: 8px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.btn-link:hover {
  background: var(--portfolio-accent);
  color: #fff;
}

.portfolio-meta {
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-meta h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 5px;
  font-weight: 700;
}

.portfolio-meta span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.cro-card {
  grid-column: span 1;
}

.portfolio-item.cro-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.portfolio-item.cro-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.cro-card-inner {
  background: linear-gradient(
    135deg,
    rgba(146, 71, 215, 0.1),
    rgba(7, 7, 45, 0.3)
  );
  border: 1px dashed var(--portfolio-accent);
  border-radius: 16px;
  height: 100%;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.3s ease;
}

.cro-card-inner:hover {
  background: linear-gradient(
    135deg,
    rgba(146, 71, 215, 0.2),
    rgba(7, 7, 45, 0.4)
  );
}

.cro-content {
  padding: 30px;
}

.cro-content h3 {
  color: #fff !important;
}

.cro-content a {
  margin-top: 1rem;
}

.cro-icon {
  font-size: 3rem;
  color: var(--portfolio-accent);
  margin-bottom: 20px;
}

.cro-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
}

.cro-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
}

.cro-btn {
  background: var(--portfolio-accent);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(146, 71, 215, 0.3);
  transition: transform 0.3s ease;
}

.cro-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.portfolio-social-proof {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 80px;
}

.proof-title {
  text-align: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.eyebrow-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--portfolio-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 2rem;
}

.logo-marquee {
  opacity: 0.7;
}

.portfolio-cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-box-glow {
  background: linear-gradient(
    135deg,
    rgba(146, 71, 215, 0.1),
    rgba(7, 7, 45, 0.4)
  );
  border: 1px solid rgba(146, 71, 215, 0.3);
  border-radius: 20px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(146, 71, 215, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-content-wrapper h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.cta-content-wrapper p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 25px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 600;
}

.btn-outline:hover {
  background: #fff;
  color: var(--portfolio-bg);
}

.btn-lg {
  padding: 15px 35px;
  font-size: 1.1rem;
}

@media (max-width: 991.98px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .cta-actions {
    flex-direction: column;
  }
}

.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(146, 71, 215, 0.3);
  border: 2px solid transparent;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(146, 71, 215, 0.5);
  background: #a855f7;
  color: white;
}

.cta-btn.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.cta-btn.btn-outline:hover {
  background: white;
  color: black;
  border-color: white;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}