/* TEST: Remove after confirming CSS loads */
/* Remove test border */
body { border: none !important; }

/* Animated Gradient Background */
body {
  background: linear-gradient(-45deg, #18181f, #23243a, #1a1a2e, #22223b);
  background-size: 400% 400%;
  animation: gradientBG 18s ease infinite;
  color: #f8f9fa;
  font-family: 'Poppins', Arial, sans-serif;
}
@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Layout fixes */
.unslate_co--site-wrap, .unslate_co--site-inner {
  width: 100%;
  /* Remove max-width and margin for hero */
}
/* For inner content sections, use .container or .unslate_co--section for centering */
.unslate_co--section, .container {
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  text-align: center;
  padding: 32px 16px;
}
.cover-v1 {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  position: relative;
  text-align: center;
}
.glass-hero {
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border-radius: 24px;
  padding: 48px 32px 32px 32px;
  background: rgba(30, 30, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.12);
}
.unslate_co--section {
  margin: 48px 0;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  background: rgba(24,24,32,0.95);
}
.row.gutter-isotope-item {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 0;
  justify-content: center;
}
.item {
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Headings */
h1, .heading-h2, .heading-h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1px;
}

/* Portfolio Neon Hover */
.portfolio-hover {
  /* Remove overflow/large border-radius if breaking grid */
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.24);
  border: 2px solid transparent;
  transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
  width: 100%;
  max-width: 100%;
  background: #18181f;
  display: block;
}
.portfolio-hover img {
  max-width: 100%;
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: box-shadow 0.3s;
}
.portfolio-item-content {
  padding: 16px 8px 8px 8px;
  text-align: center;
}
/* Responsive grid columns */
@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 767px) {
  .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
  .portfolio-hover img { height: 160px; }
}
/* Fix for links/text in portfolio */
.portfolio-item h3, .portfolio-item p {
  color: #fff;
  margin-bottom: 0.5rem;
}
/* Remove any global img or a styles that break layout */
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
/* Add smooth transitions for interactive elements */
button, .btn, a, .portfolio-hover, .feature-v1, .footer-site-social li a {
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

/* Service Card Neon Hover */
.feature-v1 {
  background: rgba(24,24,32,0.95)!important;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,255,231,0.04);
  color: #f8f9fa;
  border: 1.5px solid rgba(0,255,231,0.08);
  transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  float: none;
}
.feature-v1 .wrap-icon {
  background: #18181f;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  box-shadow: 0 0 16px 2px #00ffe7;
  transition: box-shadow 0.3s;
}
.feature-v1:hover {
  box-shadow: 0 0 32px 4px #00ffe7, 0 8px 32px rgba(0,0,0,0.32);
  border: 1.5px solid #00ffe7;
  transform: translateY(-4px) scale(1.03);
}
.feature-v1:hover .wrap-icon {
  box-shadow: 0 0 32px 8px #00ffe7;
}

/* Testimonial Neon Border */
#testimonial-section .owl-carousel {
  box-shadow: 0 0 32px 4px #00ffe7, 0 8px 32px rgba(0,0,0,0.32)!important;
  border: 2px solid #00ffe7!important;
  background: rgba(24,24,32,0.95)!important;
}

/* Footer Social Animated Underline */
.footer-site-social li a {
  position: relative;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-site-social li a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,#00ffe7,#007bff);
  transition: width 0.3s;
  position: absolute;
  left: 0; bottom: -2px;
}
.footer-site-social li a:hover {
  color: #00ffe7;
}
.footer-site-social li a:hover:after {
  width: 100%;
}

/* Glassy effect for contact form */
#contact-section form {
  background: rgba(30,30,40,0.55);
  border-radius: 18px;
  padding: 32px 24px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.17);
  border: 1.5px solid rgba(255,255,255,0.08);
}

/* Animated stars/particles */
.stars {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle 2s infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.7; }
  to { opacity: 0.2; }
} 

/* --- Portfolio Section Full Width Fix --- */
/* Remove background, border-radius, box-shadow from portfolio section */
#portfolio-section.unslate_co--section {
  display: contents;
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  padding: 0 0 48px 0;
}
#posts, .row.gutter-isotope-item {
  width: 100%;
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.item {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
@media (max-width: 991px) {
  .item { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 767px) {
  .item { flex: 0 0 100%; max-width: 100%; }
}
/* Card effect only on portfolio-hover */
.portfolio-hover {
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  background: #18181f;
  margin: 0 12px 0 0;
  padding: 0;
  display: block;
  transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
}
.portfolio-hover img {
  max-width: 100%;
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  display: block;
}
.portfolio-item-content {
  padding: 16px 8px 8px 8px;
  text-align: center;
} 

/* --- Improved Centering and Spacing for All Main Content --- */
.container, .unslate_co--section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  /* Remove text-align: center here */
}
.row, .row.gutter-v3, .row.gutter-isotope-item {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}
.item {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 992px) {
  .item { width: 33.3333%; max-width: 33.3333%; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .item { width: 50%; max-width: 50%; }
}
@media (max-width: 767px) {
  .item { width: 100%; max-width: 100%; }
}
.feature-v1 {
  text-align: center;
  float: none;
  margin-left: auto;
  margin-right: auto;
}
/* Utility class for centering text if needed */
.center-content {
  text-align: center;
} 

/* --- Center Portfolio Grid --- */
#portfolio-section .portfolio-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#portfolio-section .row.gutter-isotope-item {
  justify-content: center;
}
#posts {
  margin-left: auto;
  margin-right: auto;
}
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
} 

/* --- Perfectly Center Portfolio Section --- */
#portfolio-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#posts {
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
#portfolio-section .row.gutter-isotope-item {
  justify-content: center;
}
#portfolio-section .item {
  margin-left: 0;
  margin-right: 0;
} 

/* --- Portfolio Card and Image Sizing Fix (CLEANED) --- */
#portfolio-section .row.gutter-isotope-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 0;
}
#portfolio-section .item {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  box-sizing: border-box;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#portfolio-section .portfolio-hover {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  background: #18181f;
  padding: 0;
  display: block;
  transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
}
#portfolio-section .portfolio-hover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  display: block;
}
@media (max-width: 991px) {
  #portfolio-section .item { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 767px) {
  #portfolio-section .item { flex: 0 0 100%; max-width: 100%; }
  #portfolio-section .portfolio-hover img { height: 160px; }
} 

/* Fix for portfolio grid width issues */
#posts.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
#posts .item {
  aspect-ratio: 1/1;
  min-width: 0;
  min-height: 350px; /* Increased from default */
  background: #181818;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  padding: 0;
}
#posts .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
@media (max-width: 991.98px) {
  #posts.row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767.98px) {
  #posts.row {
    grid-template-columns: 1fr;
  }
}

/* Optional: add some gap between items */
#posts .item {
  padding: 12px;
} 

/* Logo swap logic for scroll */
.site-logo .logo-white { display: inline; }
.site-logo .logo-black { display: none; }

.site-logo.nav-scrolled .logo-white { display: none !important; }
.site-logo.nav-scrolled .logo-black { display: inline !important; } 