/* ========================================
   SERVICE PORTFOLIO PAGE STYLES
   ======================================== */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* Import Intersection Observer for scroll animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(67, 97, 238, 0.6);
  }
}

@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Use same color variables as main site */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0d1b;
  --bg-card: #0f1a30;
  --bg-card-hover: #152040;
  --border-color: #1e3054;
  --accent-blue: #4361ee;
  --accent-purple: #7c3aed;
  --gradient-main: linear-gradient(135deg, #2d429e, #7c3aed);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.25) 0%, transparent 65%);
  --text-primary: #ffffff;
  --text-secondary: #abbcd4;
  --text-accent: #60a5fa;
  --check-color: #4ade80;
  --star-color: #f59e0b;
  --underline-accent: linear-gradient(90deg, #4361ee, #7c3aed);
}

/* Portfolio Hero Section */
.portfolio-hero {
  padding: 140px 0 80px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, transparent 0%);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.portfolio-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(67, 97, 238, 0.1), transparent);
  animation: borderRotate 20s linear infinite;
  pointer-events: none;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent-blue);
}

.breadcrumb svg {
  width: 16px;
  height: 16px;
}

.breadcrumb .current {
  color: var(--accent-purple);
  font-weight: 600;
}

/* Portfolio Hero Grid */
.portfolio-hero-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.portfolio-hero-content {
  max-width: 2000px;
}

.portfolio-badge {
  display: inline-block;
  background: rgba(67, 97, 238, 0.15);
  border: 1px solid rgba(67, 97, 238, 0.3);
  color: var(--text-accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  font-weight: 600;
  animation: slideInFromTop 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.portfolio-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.portfolio-hero-content h1 {
  font-family:  'DM Sans', sans-serif;
  font-size: clamp(2.5rem, 3vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.portfolio-hero-content h1 .gradient-text {
  background: linear-gradient(135deg, #3b82f6 20%, #8b5cf6 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.portfolio-hero-content h1 .gradient-text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  animation: typewriter 2s ease-out 0.5s forwards;
}

.portfolio-hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Portfolio Hero Illustration 
.portfolio-hero-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.portfolio-hero-illustration img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(67, 97, 238, 0.4));
} */

/* Filter Tabs */
.portfolio-filters {
  padding: 60px 0 0;
  background: transparent;
}

.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

.filter-tab {
  padding: 12px 28px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out both;
}

.filter-tab:nth-child(1) { animation-delay: 0.1s; }
.filter-tab:nth-child(2) { animation-delay: 0.2s; }
.filter-tab:nth-child(3) { animation-delay: 0.3s; }
.filter-tab:nth-child(4) { animation-delay: 0.4s; }
.filter-tab:nth-child(5) { animation-delay: 0.5s; }

.filter-tab::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.3), transparent);
  transform: translate(-50%, -50%);
  transition: all 0.5s;
  border-radius: 50%;
}

.filter-tab:hover::before {
  width: 100%;
  height: 100%;
}

.filter-tab:hover {
  border-color: var(--accent-blue);
  color: #fff;
  background: rgba(67, 97, 238, 0.1);
}

.filter-tab.active {
  background: var(--gradient-main);
  border-color: transparent;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding-bottom: 80px;
}

/* Digital Marketing Portfolio - Specific 2x4 Grid Layout */
.portfolio-marketing-page .portfolio-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
}

/* Graphics Portfolio - Specific 3x4 Grid Layout */
.portfolio-graphics-page .portfolio-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
}

/* Social Media Portfolio - Specific 5x2 Grid Layout */
.portfolio-social-page .portfolio-grid {
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, auto);
}

/* AI Automation Portfolio - Specific 3x2 Grid Layout */
.portfolio-ai-page .portfolio-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
}

/* Portfolio Card */
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-card:nth-child(4) { animation-delay: 0.4s; }
.portfolio-card:nth-child(5) { animation-delay: 0.5s; }
.portfolio-card:nth-child(6) { animation-delay: 0.6s; }
.portfolio-card:nth-child(7) { animation-delay: 0.7s; }
.portfolio-card:nth-child(8) { animation-delay: 0.8s; }

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.1), transparent);
  transition: left 0.5s;
}

.portfolio-card:hover::before {
  left: 100%;
}

.portfolio-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 60px rgba(67, 97, 238, 0.35);
}

.portfolio-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9);
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.1) rotate(1deg);
  filter: brightness(1.1);
}

/* External Link Icon */
.card-link-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s;
  transform: scale(0.8);
}

.portfolio-card:hover .card-link-icon {
  opacity: 1;
  transform: scale(1);
}

.card-link-icon:hover {
  transform: scale(1.2);
  background: var(--accent-blue);
}

.card-link-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

/* Portfolio Card Content */
.portfolio-card-content {
  padding: 20px;
}

.portfolio-card-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  transition: all 0.3s;
  position: relative;
}

.portfolio-card:hover .portfolio-card-content h3 {
  color: #abbcd4;
  transform: translateX(4px);
}

.portfolio-card-type {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.portfolio-card:hover .portfolio-card-type {
  color: #8896a7;
}

.portfolio-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--accent-purple);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.portfolio-card-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  transition: width 0.3s;
}

.portfolio-card-link:hover::after {
  width: 100%;
}

.portfolio-card-link:hover {
  gap: 10px;
  color: #8896a7;
}

/* CTA Cards at Bottom */
.portfolio-cta-section {
  padding: 40px 0 80px;
  background: transparent;
}

.portfolio-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease-out forwards;
}

.portfolio-cta-card:nth-child(1) { animation-delay: 0.2s; }
.portfolio-cta-card:nth-child(2) { animation-delay: 0.4s; }

.portfolio-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.05), transparent);
  transition: left 0.6s;
}

.portfolio-cta-card:hover::before {
  left: 100%;
}

.portfolio-cta-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 50px rgba(67, 97, 238, 0.3);
}

.cta-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s;
  position: relative;
}

.cta-icon::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: var(--gradient-main);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-cta-card:hover .cta-icon {
  transform: scale(1.1) rotate(5deg);
}

.portfolio-cta-card:hover .cta-icon::before {
  opacity: 0.5;
}

.cta-icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
}

.cta-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cta-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gradient-main);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  transform: translateX(8px) scale(1.05);
  box-shadow: 0 8px 30px rgba(67, 97, 238, 0.5);
}

.cta-btn:hover svg {
  transform: translateX(4px);
}

.cta-btn svg {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .portfolio-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .portfolio-hero-illustration {
    order: -1;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .portfolio-cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 100px 0 60px;
  }
  
  .filter-tabs {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-bottom: 8px;
  }
  
  .filter-tab {
    white-space: nowrap;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
}
/* ===================== AURORA BACKGROUND ===================== */
.aurora-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: auroraMove 14s ease-in-out infinite alternate;
}
.a1 {
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, #4361ee, transparent 70%);
  top: -100px; left: -100px;
  animation-duration: 10s;
}
.a2 {
  width: 600px; height: 500px;
  background: radial-gradient(ellipse, #7c3aed, transparent 70%);
  top: 20%; right: -150px;
  animation-duration: 8s;
  animation-delay: -5s;
}
.a3 {
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, #60a5fa, transparent 70%);
  bottom: 10%; left: 20%;
  animation-duration: 8s;
  animation-delay: -10s;
}
@keyframes auroraMove {
  0%   { transform: translateX(0px) translateY(0px) scale(1); }
  33%  { transform: translateX(80px) translateY(-60px) scale(1.1); }
  66%  { transform: translateX(-60px) translateY(80px) scale(0.95); }
  100% { transform: translateX(40px) translateY(-40px) scale(1.05); }
}
/* Scroll-triggered animation classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animations */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-item:nth-child(6) { transition-delay: 0.6s; }
.stagger-item:nth-child(7) { transition-delay: 0.7s; }
.stagger-item:nth-child(8) { transition-delay: 0.8s; }

/* Parallax effect */
.parallax-slow {
  transition: transform 0.8s ease-out;
}

/* Loading animation */
.loading-shimmer {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(67, 97, 238, 0.1) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Video Background Styling */
#bg-video {
  position: fixed;      /* Fix position on screen */
  top: 0;
  left: 0;
  width: 100%;          /* Full width */
  height: 100%;         /* Full height */
  object-fit: cover;    /* Cover the screen without stretching */
  z-index: -1;          /* Behind all other content */
  opacity: 0.9;         /* 50% transparency */
  pointer-events: none; /* Allow clicks to pass through */
}

/* Portfolio Popup Modal - Refined Design */
.portfolio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

.portfolio-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.portfolio-modal-content {
  position: relative;
  background: #0f1a30;
  border: 1px solid #1e3054;
  border-radius: 16px;
  max-width: 95vw;
  max-height: 95vh;
  width: 1200px;
  height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInUp 0.4s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #1e3054;
  background: #0a0d1b;
}

.back-to-gallery {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s;
}

.back-to-gallery:hover {
  color: #4361ee;
}

.back-to-gallery i {
  font-size: 16px;
}

.close-button {
  font-size: 24px;
  color: #8892b0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s;
}

.close-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Modal Body */
.modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left Section - Gallery */
.modal-gallery-section {
  flex: 1;
  background: #0a0d1b;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1e3054;
}

.gallery-main {
  background: #0f1a30;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 400px;
  margin-bottom: 16px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-nav-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
}

.gallery-nav-arrows i {
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s;
}

.gallery-nav-arrows i:hover {
  background: #4361ee;
  transform: scale(1.1);
}

.image-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  max-height: 60px;
  overflow-x: auto;
  padding: 8px 0;
}

.thumbnail {
  width: 50px;
  height: 35px;
  background: #0f1a30;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.thumbnail:hover {
  border-color: #4361ee;
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: #7c3aed;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-footer {
  text-align: center;
  padding: 16px 0;
}

.gallery-footer h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.gallery-footer p {
  font-size: 13px;
  color: #8892b0;
  margin: 0;
}

/* Right Section - Details */
.modal-details-section {
  flex: 1;
  background: #0a0d1b;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured-project {
  text-align: center;
}

.featured-label {
  display: inline-block;
  background: #4361ee;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.featured-project h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.featured-project p {
  font-size: 14px;
  color: #8892b0;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.live-preview-btn, .similar-website-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #4361ee;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.live-preview-btn:hover, .similar-website-btn:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.live-preview-btn i, .similar-website-btn i {
  font-size: 16px;
}

.project-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #0a0d1b;
  border-radius: 12px;
  transition: all 0.3s;
}

.info-item:hover {
  background: #1e3054;
  transform: translateY(-2px);
}

.info-icon {
  width: 40px;
  height: 40px;
  background: #4361ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon i {
  color: #fff;
  font-size: 16px;
}

.info-content h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.info-content p {
  font-size: 13px;
  color: #8892b0;
  line-height: 1.5;
  margin: 0;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-item {
  background: #1e3054;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #1e3054;
  background: #0a0d1b;
}

.footer-left, .footer-center, .footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-left {
  justify-content: flex-start;
}

.footer-center {
  justify-content: center;
}

.footer-right {
  justify-content: flex-end;
}

.gallery-info, .nav-hint, .esc-hint, .project-in-mind {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8892b0;
  font-size: 13px;
  font-weight: 500;
}

.gallery-info i, .nav-hint i, .esc-hint i, .project-in-mind i {
  color: #4361ee;
  font-size: 14px;
}

.gallery-info span, .nav-hint span, .esc-hint span, .project-in-mind span {
  color: #fff;
}

/* Modal Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Enhanced Responsive Modal */
@media (max-width: 1200px) {
  .portfolio-modal-content {
    max-width: 92vw;
    max-height: 92vh;
  }
  
  .gallery-main {
    max-height: 55vh;
  }
}

@media (max-width: 1024px) {
  .portfolio-modal-content {
    max-width: 94vw;
    max-height: 94vh;
  }
  
  .gallery-main {
    max-height: 50vh;
  }
  
  .featured-project h3 {
    font-size: 22px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .live-preview-btn, .similar-website-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .portfolio-modal-content {
    width: 96vw;
    height: 95vh;
    max-width: none;
    margin: 15px;
    border-radius: 12px;
  }
  
  .portfolio-modal-header {
    padding: 18px 20px;
  }
  
  .header-text h2 {
    font-size: 18px;
  }
  
  .header-text p {
    font-size: 12px;
  }
  
  .portfolio-modal-gallery {
    padding: 20px;
  }
  
  .gallery-main {
    max-height: 45vh;
    overflow: hidden;
  }
  
  .portfolio-modal-info {
    padding: 20px;
  }
  
  .project-info-grid {
    gap: 14px;
  }
  
  .thumbnail {
    width: 45px;
    height: 32px;
  }
  
  .gallery-arrow {
    width: 36px;
    height: 36px;
  }
  
  .gallery-arrow svg {
    width: 14px;
    height: 14px;
  }
  
  .gallery-arrow-prev {
    left: 10px;
  }
  
  .gallery-arrow-next {
    right: 10px;
  }
  
  .image-counter {
    bottom: 15px;
    right: 15px;
    padding: 4px 10px;
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .portfolio-modal-content {
    width: 98vw;
    height: 98vh;
    margin: 10px;
    border-radius: 8px;
  }
  
  .portfolio-modal-header {
    padding: 15px 18px;
  }
  
  .header-text h2 {
    font-size: 16px;
  }
  
  .header-text p {
    font-size: 11px;
  }
  
  .portfolio-modal-gallery {
    padding: 15px;
  }
  
  .gallery-main {
    max-height: 40vh;
  }
  
  .portfolio-modal-info {
    padding: 15px;
  }
  
  .project-info-grid {
    gap: 12px;
  }
  
  .featured-project h3 {
    font-size: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .live-preview-btn, .similar-website-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .tech-stack {
    gap: 4px;
  }
  
  .tech-item {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .gallery-thumbnails {
    gap: 6px;
  }
  
  .thumbnail {
    width: 40px;
    height: 28px;
  }
  
  .gallery-arrow {
    width: 32px;
    height: 32px;
  }
  
  .gallery-arrow svg {
    width: 12px;
    height: 12px;
  }
  
  .gallery-arrow-prev {
    left: 8px;
  }
  
  .gallery-arrow-next {
    right: 8px;
  }
  
  .image-counter {
    bottom: 12px;
    right: 12px;
    padding: 3px 8px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .portfolio-modal-content {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
  }
  
  .portfolio-modal-header {
    padding: 12px 16px;
  }
  
  .header-text h2 {
    font-size: 14px;
  }
  
  .header-text p {
    font-size: 10px;
  }
  
  .portfolio-modal-gallery {
    padding: 12px;
  }
  
  .gallery-main {
    max-height: 35vh;
  }
  
  .portfolio-modal-info {
    padding: 12px;
  }
  
  .project-info-grid {
    gap: 10px;
  grid-template-columns: 1fr;
  }
  
  .featured-project h3 {
    font-size: 18px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 6px;
  }
  
  .live-preview-btn, .similar-website-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .tech-stack {
    gap: 3px;
    flex-wrap: wrap;
  }
  
  .tech-item {
    font-size: 9px;
    padding: 2px 4px;
  }
  
  .gallery-thumbnails {
    gap: 4px;
  }
  
  .thumbnail {
    width: 35px;
    height: 24px;
  }
  
  .gallery-arrow {
    width: 28px;
    height: 28px;
  }
  
  .gallery-arrow svg {
    width: 10px;
    height: 10px;
  }
  
  .gallery-arrow-prev {
    left: 6px;
  }
  
  .gallery-arrow-next {
    right: 6px;
  }
  
  .image-counter {
    bottom: 10px;
    right: 10px;
    padding: 2px 6px;
    font-size: 9px;
  }
  
  .modal-footer {
    padding: 12px 16px;
  }
  
  .footer-left, .footer-center, .footer-right {
    gap: 6px;
  }
  
  .gallery-info, .nav-hint, .esc-hint, .project-in-mind {
    font-size: 11px;
    gap: 6px;
  }
}