/* ===== RESET & BASE ===== */
body {
  background-color: #050505;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ===== NAVBAR (matching original glassmorphism) ===== */
#mainNavbar {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo {
  width: 138px;
}

.nav-link {
  color: black !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  transition: transform 0.2s;
}

.nav-link:hover {
  transform: scale(1.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Active nav link state */
.navbar .nav-link.active {
  font-weight: 700;
}

.navbar .nav-link.active::after {
  width: 100%;
}

.btn-dark {
  background-color: black;
  border: none;
  transition: all 0.2s;
}

.btn-dark:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

/* ===== HERO CAROUSEL ===== */
.hero-section {
  padding-top: 76px;
}

.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.carousel-img.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.hero-glow {
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15), transparent);
  z-index: 6;
}

/* Buttons */
.btn-light {
  background: white;
  color: black;
  transition: all 0.25s ease;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.25s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

/* ===== SECTIONS ===== */
.section-dark {
  position: relative;
  background-color: #050505;
  overflow: hidden;
}

.glow-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08), transparent);
  pointer-events: none;
}

/* Fade animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: all 0.3s;
  overflow: hidden;
  height: 100%;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-8px);
}

.service-card .glow-effect {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15), transparent);
  transition: opacity 0.5s;
  border-radius: 1rem;
  pointer-events: none;
}

.service-card:hover .glow-effect {
  opacity: 1;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 1.8rem;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.service-card p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ===== PORTFOLIO ===== */
.portfolio-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.7s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  transition: background-color 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
  background-color: rgba(0, 0, 0, 0.7);
}

.portfolio-content {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.portfolio-category {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.portfolio-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-link {
  opacity: 1;
}

/* Additional portfolio styles (filter buttons, etc.) */
.filter-btn.active {
  background-color: white !important;
  color: black !important;
}

.bg-radial-purple {
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15), transparent);
}

.hover-opacity-100:hover {
  opacity: 1 !important;
}

.transition {
  transition: opacity 0.3s;
}

/* ===== SHOWCASE ===== */
.showcase-section {
  position: relative;
  background-color: black;
  overflow: hidden;
}

.showcase-bg-animation {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.showcase-glow-1 {
  position: absolute;
  top: 0;
  left: 25%;
  width: 600px;
  height: 600px;
  background-color: rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  filter: blur(120px);
  animation: pulse 4s infinite;
}

.showcase-glow-2 {
  position: absolute;
  bottom: 0;
  right: 25%;
  width: 500px;
  height: 500px;
  background-color: rgba(6, 182, 212, 0.3);
  border-radius: 50%;
  filter: blur(120px);
  animation: pulse 4s infinite;
  animation-delay: 1s;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  grid-auto-rows: 200px;
}

@media (min-width: 768px) {
  .showcase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.showcase-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.showcase-item:hover img {
  transform: scale(1.1);
}

.showcase-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.showcase-item:hover .overlay {
  opacity: 0.8;
}

/* Grid span utilities for showcase */
.g-col-2 {
  grid-column: span 2;
}

.g-row-2 {
  grid-row: span 2;
}

/* ===== STATS ===== */
.stats-section {
  position: relative;
  background-color: #050505;
  overflow: hidden;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255,255,255,0.15);
}

.stat-label {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}

.stat-divider {
  margin: 1rem auto 0;
  width: 2.5rem;
  height: 1px;
  background-color: rgba(255,255,255,0.2);
}

/* ===== CTA ===== */
.cta-section {
  position: relative;
  background-color: #050505;
  overflow: hidden;
}

.icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle i {
  font-size: 1.25rem;
  color: white;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  background-color: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.06), transparent);
  pointer-events: none;
}

.social-icons a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
  text-decoration: none;
}

.social-icons a:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.social-icons i {
  font-size: 1.25rem;
}

.footer ul li a:hover {
  color: white !important;
}

/* ===== PAGE HEADER (for sub-pages like Services, Portfolio) ===== */
.page-header {
  padding-top: 120px !important;
  padding-bottom: 80px !important;
  background-color: #050505;
}

/* ===== UTILITY OVERRIDES ===== */
.bg-black {
  background-color: #000 !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.rounded {
  border-radius: 0.375rem !important;
}