/**
 * Vivid Canvas - Portfolio Page Specific Styles
 * Extracted from inline styles in src/pages/portfolio.html
 */

/* =========================================
   1. Enhanced Portfolio Hero Styles
   ========================================= */
.portfolio-hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
  perspective: 1000px;
  background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 50%, var(--black) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../../assets/images/portfolio-hero-bg.jpg'); /* Adjusted path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6));
  z-index: 2;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, var(--gold-ultra-light), transparent 70%);
  opacity: 0.7;
  z-index: -1;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--black), transparent);
  z-index: 3;
}

.page-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  transform-style: preserve-3d;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-ultra-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease-out forwards;
  transform: translateZ(50px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px) translateZ(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(50px);
  }
}

.animated-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2rem;
  position: relative;
  color: var(--white);
  animation: titleReveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: 0.3s;
  opacity: 0;
  transform: translateZ(80px);
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 100%;
  display: block;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(20px) translateZ(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(80px);
  }
}

.highlight {
  position: relative;
  color: var(--gold);
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(to right, var(--gold), var(--gold-secondary));
  animation: lineReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 1.5s;
  border-radius: 10px;
}

@keyframes lineReveal {
  from {
    width: 0%;
  }
  to {
  width: 100%;
  }
}

.hero-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  width: 80px;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.hero-separator span {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-tagline {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1s;
  opacity: 0;
  transform: translateZ(40px);
}

.hero-cta {
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.3s;
  opacity: 0;
}

.scroll-down-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background-color: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transform: translateZ(30px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.scroll-down-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-secondary));
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.scroll-down-btn i {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-down-btn:hover {
  color: var(--gold-contrast);
  border-color: transparent;
}

.scroll-down-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.scroll-down-btn:hover i {
  transform: translateY(5px);
}

/* Floating particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 5;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  animation: floatParticle 20s infinite ease-in-out;
    opacity: 0;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 70%;
  left: 30%;
  width: 8px;
  height: 8px;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  top: 30%;
  left: 80%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  top: 40%;
  left: 60%;
  width: 10px;
  height: 10px;
  animation-delay: 6s;
}

.particle:nth-child(5) {
  top: 80%;
  left: 75%;
  animation-delay: 8s;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: translateY(-150px) rotate(180deg);
    opacity: 0.4;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-300px) rotate(360deg);
    opacity: 0;
  }
}

/* Responsive styles */
@media (max-width: 991px) {
  .portfolio-hero {
    height: 75vh;
  }

  .animated-title {
    font-size: 3.5rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  .animated-title {
    font-size: 2.8rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .scroll-down-btn {
    padding: 0.8rem 1.6rem;
  }

  .hero-separator {
    width: 60px;
  }
}

/* =========================================
   2. Enhanced Explore Our Projects Section
   ========================================= */
#portfolio-grid {
  position: relative;
  background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black-secondary) 50%, var(--black) 100%);
  overflow: hidden;
  padding: 6rem 0;
}

#portfolio-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  opacity: 0.8;
  z-index: 1;
}

#portfolio-grid .container {
  position: relative;
  z-index: 5;
  /* NEW: Override default container width for this section */
  max-width: 100%; /* Allow full width */
  padding-left: 0;  /* Remove container padding */
  padding-right: 0; /* Remove container padding */
}

.section-intro {
  margin-bottom: 4rem;
  position: relative;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#portfolio-grid .section-title {
  color: var(--white);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#portfolio-grid .section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

#portfolio-grid .section-subtitle {
  color: var(--off-white);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 99999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform: scale(0.9)}
  to {transform: scale(1)}
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
}

/* Responsive adjustments for the section */
@media (max-width: 768px) {
  #portfolio-grid .section-title {
    font-size: 2.5rem;
  }
  #portfolio-grid .section-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  #portfolio-grid {
    padding: 4rem 0;
  }
  #portfolio-grid .section-title {
    font-size: 2rem;
  }
  #portfolio-grid .section-subtitle {
    font-size: 1rem;
  }
}

