/*==================== VARIABLES CSS ====================*/
:root {
  /*========== Colors ==========*/
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #1e293b;
  --primary-color: #C5A572;
  --primary-dark: #b49059;
  --gradient-primary: linear-gradient(135deg, hsl(44 96% 70%), hsl(44 96% 60%));
  --light-text: #ffffff;
  --dark-bg: #1a1a1a;

  /*========== Font and typography ==========*/
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --normal-font-size: 0.938rem;
}

/*==================== PORTFOLIO HERO ====================*/
.portfolio-hero {
  background-image: url('../assets/portfolio-hero.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  padding: 8rem 2rem 6rem;
  text-align: center;
  color: var(--light-text);
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.portfolio-hero .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
}

.portfolio-hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
  position: relative;
}

.portfolio-hero h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.portfolio-hero p {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.7;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  font-weight: 400;
  letter-spacing: 0.01em;
  position: relative;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}


/*==================== PORTFOLIO GRID ====================*/
.portfolio-grid {
  padding: 6rem 2rem;
  background-image: url('../assets/portfolio-background.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.portfolio-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 15, 15, 0.7);
  z-index: 0;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
}

.project-item {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: none;
  border: none;
  width: 100%;
}

.project-item:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}


/* Video Performance Optimizations */
.project-video {
  background: #000; /* Fallback background */
  will-change: transform; /* Optimize for animations */
}

/* Pause videos on mobile to save battery */
@media (max-width: 768px) {
  .project-video {
    pointer-events: none; /* Prevent interaction on mobile */
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .project-video {
    animation: none;
  }
  
  .project-item:hover .project-video {
    transform: none;
  }
}



.project-tech span {
  background: var(--primary-color);
  color: var(--dark-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, var(--primary-color), #d4b574);
  color: var(--dark-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(197, 165, 114, 0.3);
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 165, 114, 0.4);
  color: var(--dark-bg);
}

.project-link i {
  font-size: 0.9rem;
}

/* Project Info */
.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Mobile Tech Stack Display */
.mobile-tech-stack {
  display: none;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.mobile-tech-stack h4 {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-tech-tags span {
  background: var(--primary-color);
  color: var(--dark-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/*==================== CTA SECTION ====================*/
.portfolio-cta {
  background: linear-gradient(135deg, #1a1d24 0%, #2d3748 100%);
  padding: 5rem 2rem;
  text-align: center;
  color: var(--light-text);
  position: relative;
  overflow: hidden;
}

.portfolio-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(197, 165, 114, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(197, 165, 114, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.portfolio-cta .container {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--dark-bg);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: var(--dark-bg);
}

/*==================== RESPONSIVE DESIGN ====================*/
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }
  
  .portfolio-hero h1 {
    font-size: 3rem;
  }
  
  .portfolio-hero p {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    background-attachment: scroll;
    min-height: 50vh;
    padding: 6rem 1.5rem 4rem;
  }
  
  .portfolio-hero h1 {
    margin-bottom: 1rem;
  }
  
  .portfolio-hero p {
    margin-bottom: 0;
  }
  
  .portfolio-grid {
    padding: 4rem 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .project-item {
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* Hide hover overlay on mobile */
  .project-overlay {
    display: none;
  }
  
  /* Show mobile tech stack on mobile */
  .mobile-tech-stack {
    display: block;
  }
  
  .project-details {
    padding: 1.5rem;
  }
  
  .project-details h3 {
    font-size: 1.25rem;
  }
  
  .project-details p {
    font-size: 0.9rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content p {
    font-size: 1rem;
  }
  
  /* Testimonials mobile styles */
  .testimonials {
    background-attachment: scroll;
    padding: 3rem 1rem;
  }
  
  .testimonial-swiper .swiper-slide {
    padding: 0.25rem;
    min-height: 250px;
  }
  
  blockquote, .cta {
    padding: 1rem !important;
  }
}

@media (max-width: 480px) {
  .portfolio-hero {
    min-height: 45vh;
    padding: 5rem 1rem 3rem;
  }
  
  .portfolio-grid {
    padding: 3rem 0.5rem;
  }
  
  .project-info {
    padding: 1rem;
  }
  
  .project-info h3 {
    font-size: 1.125rem;
  }
  
  .project-info p {
    font-size: 0.9rem;
  }
  
  .portfolio-cta {
    padding: 3rem 1rem;
  }
  
  .cta-content h2 {
    font-size: 1.75rem;
  }
}

@media screen and (min-width: 968px) {
  :root {
    --normal-font-size: 1rem;
  }
} 

/* Disable fixed background on devices that don't support it well */
@media (prefers-reduced-motion: reduce) {
  .portfolio-hero {
    background-attachment: scroll;
  }
} 


/*==================== TESTIMONIALS SECTION ====================*/
.testimonial-swiper .swiper-slide {
  background: rgba(10, 10, 10, 0.95);
  border-radius: 12px;
  padding: 0.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: auto;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.testimonial-swiper .swiper-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.swiper-wrapper a {
  text-decoration: none;
  color: inherit;
}

.testimonials {
  margin: 0 auto;
  background: url('../assets/hero-parallax.webp') center/cover fixed;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 4rem 2rem;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.testimonials .container {
  position: relative;
  z-index: 1;
}

blockquote {
  color: var(--light-text);
}

blockquote .stars {
  color: #C5A572; /* Your primary gold tone */
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

blockquote .verified {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #aaa;
  font-style: normal;
  text-align: right;
}

/*==================== INTERACTIVE PORTFOLIO SHOWCASE ====================*/
.portfolio-showcase {
  padding: 4rem 0;
  background: var(--bg-light);
}

.showcase-header {
  text-align: center;
  margin-bottom: 3rem;
}

.showcase-header h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.showcase-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Project Selector */
.project-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.project-btn {
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.project-btn:hover,
.project-btn.active {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 165, 114, 0.3);
}

/* Project Display */
.project-display {
  position: relative;
  min-height: 600px;
}


/* Project Layout - Two Column */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 0;
  padding: 4rem 2rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  min-height: 500px;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Project Image */
.project-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
  background: #f8f9fa;
  min-height: 400px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  position: relative;
}

.showcase-image:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-dark);
  border-width: 4px;
}

/* Project Content */
.project-content {
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  height: fit-content;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.project-content h3 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.project-description {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.project-tech {
  margin-bottom: 2.5rem;
}

.project-tech h4 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-tags span {
  background: var(--primary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tags span:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.project-features {
  margin-bottom: 2.5rem;
}

.project-features h4 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.project-features ul {
  list-style: none;
  padding: 0;
}

.project-features li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.5;
}

.project-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(197, 165, 114, 0.3);
}

.project-link:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 165, 114, 0.4);
}

/* Project Details */
.project-details {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-details h3 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.project-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Technologies Section */
.technologies-section {
  margin-bottom: 2rem;
}

.technologies-section h4 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 165, 114, 0.3);
}

/* Features Section */
.features-section {
  margin-bottom: 2rem;
}

.features-section h4 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.features-list i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Project Actions */
.project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 165, 114, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 165, 114, 0.3);
}

/* Responsive Design for Two-Column Layout */
@media screen and (max-width: 1024px) {
  .project-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding: 3rem 0.25rem;
  }
  
  .project-content {
    order: 2;
    padding: 1.5rem;
  }
  
  .project-image {
    order: 1;
  }
  
  .showcase-image {
    max-width: 500px;
  }
}

@media screen and (max-width: 768px) {
  .project-layout {
    margin-bottom: 3rem;
    gap: 2rem;
  }
  
  .project-content {
    padding: 1.2rem;
  }
  
  .project-content h3 {
    font-size: 2rem;
  }
  
  .project-description {
    font-size: 1.1rem;
  }
  
  .tech-tags {
    justify-content: center;
  }
  
  .showcase-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: contain;
  }
  
  .project-features ul {
    text-align: left;
  }
  
  .showcase-image {
    max-width: 400px;
  }
}

@media screen and (max-width: 480px) {
  .project-layout {
    margin-bottom: 2rem;
    gap: 1.5rem;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .showcase-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 250px;
    object-fit: contain;
  }
  
  .project-content h3 {
    font-size: 1.8rem;
  }
  
  .project-description {
    font-size: 1rem;
  }
  
  .tech-tags span {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .project-link {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .showcase-image {
    max-width: 350px;
  }
} 