/* ----- RESET & BASE ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #faf9fc;
  color: #1e1a2b;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-block;
  background: #6c4ef4;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(108, 78, 244, 0.25);
}

.btn:hover {
  background: #5a3dd4;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(108, 78, 244, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid #6c4ef4;
  color: #6c4ef4;
  box-shadow: none;
}

.btn-outline:hover {
  background: #6c4ef4;
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

/* ----- HEADER ----- */
header {
  padding: 1.2rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(108, 78, 244, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #6c4ef4, #b47cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.logo span {
  font-weight: 300;
  -webkit-text-fill-color: #1e1a2b;
  background: none;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
  list-style: none;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: #1e1a2b;
  transition: 0.2s;
  font-size: 1rem;
}

.nav-links a:hover {
  color: #6c4ef4;
}

.nav-links a.active {
  color: #6c4ef4;
  font-weight: 600;
}

.nav-cta {
  background: #6c4ef4;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
}

.nav-cta:hover {
  background: #5a3dd4 !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #1e1a2b;
  cursor: pointer;
}

/* ============================================================
   📁 LOGO STYLING - FIXED (Desktop First Approach)
   ============================================================ */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-image {
  height: 80px;  /* Desktop default size */
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-container:hover .logo-image {
  transform: scale(1.05);
}

/* Text logo fallback */
.logo-text {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #6c4ef4, #b47cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text span {
  font-weight: 300;
  -webkit-text-fill-color: #1e1a2b;
  background: none;
}

/* Tablet - Medium screens */
@media (max-width: 1024px) {
  .logo-image {
    height: 65px;
  }
  .logo-text {
    font-size: 1.8rem;
  }
}

/* Mobile - Smaller screens */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 0 0.5rem;
    border-top: 1px solid rgba(108, 78, 244, 0.1);
    margin-top: 0.8rem;
  }

  .nav-links.show {
    display: flex;
  }

  .logo-image {
    height: 55px;
  }
  .logo-text {
    font-size: 1.5rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .logo-image {
    height: 45px;
  }
  .logo-text {
    font-size: 1.2rem;
  }
}

/* ----- HERO ----- */
.hero {
  padding: 4rem 0 5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.hero-content {
  flex: 1 1 400px;
}

.hero-badge {
  display: inline-block;
  background: rgba(108, 78, 244, 0.12);
  color: #6c4ef4;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero h1 i {
  color: #6c4ef4;
}

.hero p {
  font-size: 1.2rem;
  color: #4a4458;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  flex: 1 1 300px;
  background: linear-gradient(145deg, #ede9ff, #ffffff);
  border-radius: 40px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.08);
  border: 1px solid rgba(108, 78, 244, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-image i {
  font-size: 5rem;
  color: #6c4ef4;
  background: white;
  padding: 1.5rem;
  border-radius: 60px;
  box-shadow: 0 8px 24px rgba(108, 78, 244, 0.15);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(108, 78, 244, 0.05) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ----- SERVICES ----- */
.services {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-sub {
  text-align: center;
  color: #5d5670;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: #ffffff;
  padding: 2.5rem 1.8rem;
  border-radius: 32px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.03);
  transition: 0.3s ease;
  border: 1px solid rgba(108, 78, 244, 0.06);
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 48px -12px rgba(108, 78, 244, 0.18);
  border-color: rgba(108, 78, 244, 0.2);
}

.service-icon {
  font-size: 3rem;
  color: #6c4ef4;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card p {
  color: #4a4458;
  font-size: 0.98rem;
}

.service-tag {
  display: inline-block;
  margin-top: 1.2rem;
  background: #f0edff;
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c4ef4;
}

/* ----- PORTFOLIO GRID ----- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  border: 2px solid #e8e3f5;
  transition: 0.3s ease;
  position: relative;
  min-height: 350px;
}

.portfolio-item:hover {
  box-shadow: 0 12px 36px rgba(108, 78, 244, 0.12);
  border-color: #6c4ef4;
}

.portfolio-item .media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
  margin: 0.8rem 0;
}

.portfolio-item .media-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f3fa;
  aspect-ratio: 1;
  cursor: pointer;
  transition: 0.3s;
}

.portfolio-item .media-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(108, 78, 244, 0.3);
  z-index: 5;
}

.portfolio-item .media-item img,
.portfolio-item .media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-item .media-item .media-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 0.5rem;
  color: white;
  font-size: 0.7rem;
  opacity: 0;
  transition: 0.3s;
}

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

.portfolio-item .media-item .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  opacity: 0.7;
  transition: 0.3s;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  pointer-events: none;
}

.portfolio-item .media-item:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.portfolio-item .service-label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #6c4ef4;
  font-weight: 600;
}

.portfolio-item .media-count {
  font-size: 0.8rem;
  color: #8a84a0;
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: #f0edff;
  border-radius: 20px;
  display: inline-block;
}

.portfolio-item .project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #1e1a2b;
}

.portfolio-item .project-description {
  font-size: 0.95rem;
  color: #5d5670;
  margin-bottom: 0.5rem;
}

/* ----- FILTER BUTTONS ----- */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.filter-btn {
  background: white;
  border: 2px solid #e0daf5;
  padding: 0.6rem 1.8rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  color: #1e1a2b;
  font-size: 0.95rem;
}

.filter-btn:hover {
  background: #f0edff;
  border-color: #6c4ef4;
}

.filter-btn.active {
  background: #6c4ef4;
  color: white;
  border-color: #6c4ef4;
}

/* ----- QUOTE BLOCK ----- */
.quote-block {
  background: #ffffff;
  border-radius: 48px;
  padding: 3rem 2.5rem;
  margin: 3rem 0 5rem;
  border: 1px solid rgba(108, 78, 244, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.quote-block i {
  font-size: 2.5rem;
  color: #6c4ef4;
  opacity: 0.5;
  margin-right: 1rem;
}

.quote-block p {
  font-size: 1.3rem;
  font-weight: 500;
  flex: 1;
  min-width: 200px;
}

/* ----- FOOTER ----- */
footer {
  background: #13101e;
  color: #cbc6db;
  padding: 2.5rem 0;
  border-radius: 48px 48px 0 0;
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-socials a {
  color: #cbc6db;
  font-size: 1.4rem;
  margin-left: 1.2rem;
  transition: 0.2s;
}

.footer-socials a:hover {
  color: #b47cff;
}

.footer-copy {
  font-size: 0.9rem;
}

/* ----- EMPTY STATE ----- */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #8a84a0;
  grid-column: 1/-1;
}

.empty-state i {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 1rem;
  display: block;
}

/* ================================================================
   🖼️ LIGHTBOX / MODAL STYLES - For viewing images/videos full screen
   ================================================================ */

#lightboxModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

#lightboxModal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  transition: 0.3s;
}

#lightboxModal .close-btn:hover {
  transform: scale(1.2);
  color: #ff6b6b;
}

#lightboxContent {
  max-width: 95%;
  max-height: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightboxContent img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

#lightboxContent video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

#lightboxCounter {
  color: white;
  font-size: 0.9rem;
  min-width: 70px;
  text-align: center;
  font-weight: 500;
}

/* Lightbox navigation container */
.lightbox-nav-container {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: rgba(0,0,0,0.6);
  padding: 0.5rem 2rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.lightbox-nav-btn {
  color: white;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: 0.3s;
}

.lightbox-nav-btn:hover {
  color: #6c4ef4;
  transform: scale(1.2);
}

/* ----- RESPONSIVE ----- */

/* Tablet - Medium screens */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
}

/* Mobile - Smaller screens */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 0 0.5rem;
    border-top: 1px solid rgba(108, 78, 244, 0.1);
    margin-top: 0.8rem;
  }

  .nav-links.show {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .quote-block {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-grid {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-socials a {
    margin: 0 0.6rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item .media-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  /* Lightbox responsive */
  #lightboxModal {
    padding: 1rem;
  }
  
  #lightboxContent img,
  #lightboxContent video {
    max-height: 70vh;
  }
  
  #lightboxModal .close-btn {
    top: 10px;
    right: 15px;
    font-size: 2rem;
  }

  .lightbox-nav-container {
    bottom: 20px;
    padding: 0.3rem 1.5rem;
    gap: 1rem;
  }

  .lightbox-nav-btn {
    font-size: 1.5rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .btn {
    padding: 0.6rem 1.5rem;
  }

  .portfolio-item .media-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
  }
}