/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
} 

body {
  background: #0d0d0d;
  color: #eaeaea;
  line-height: 1.6;
}

/* Remove default link underline + color */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #a64dff; /* purple on hover */
}

/* Navbar */
/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: #111;
  position: fixed; /* header now fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 70px;
}
.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #a64dff;
}
.logo span {
  color: #fff;
}
.nav-links {
  list-style: none;
  display: flex;
}
.nav-links li {
  margin: 0 15px;
}
.nav-links a {
  color: #eaeaea;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #a64dff;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #a64dff;
}
.logo span {
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: #eaeaea;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #a64dff;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 26px;
  background: #eaeaea;
  border-radius: 2px;
  transition: 0.3s;
  margin: 4px 0;
}

/* Hero */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}
.hero-content span {
  color: #a64dff;
}
.hero-content p {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #ccc;
}
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #a64dff;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover {
  background: #7a2bcc;
}

/* About */
#about {
  padding: 80px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1100px;
  flex-wrap: wrap;
}

.about-container img {
  width: 100%;
  max-width: 350px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(166, 77, 255, 0.5);
  object-fit: cover;
}

.about-text {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #a64dff;
}

.about-text p {
  margin-bottom: 20px;
  color: #ccc;
  line-height: 1.7;
}

/* Services */
#services {
  padding: 80px 50px;
  text-align: center;
  background: #0d0d0d;
  position: relative;
  z-index: 2;
}

#services h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #a64dff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: #111;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(166, 77, 255, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(166, 77, 255, 0.6);
}

.service-card h3 {
  margin-bottom: 15px;
  color: #fff;
}

.service-card p {
  color: #bbb;
}

/* Portfolio */
#portfolio {
  padding: 80px 50px;
  text-align: center;
}

#portfolio h2 {
  font-size: 2.5rem;
  color: #a64dff;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  display: block;
  background: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.card img {
  width: 100%;
  display: block;
}

.card-title {
  display: block;
  padding: 15px;
  font-weight: bold;
  color: #fff;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(166, 77, 255, 0.6);
}

.card:hover .card-title {
  color: #a64dff;
}

/* Contact */
#contact {
  padding: 80px 50px;
  text-align: center;
}
#contact h2 {
  color: #a64dff;
  margin-bottom: 30px;
}
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
}
form input, form textarea {
  margin: 10px 0;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
}
form textarea {
  height: 150px;
}
form button {
  margin-top: 15px;
  padding: 12px;
  border: none;
  border-radius: 30px;
  background: #a64dff;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
form button:hover {
  background: #7a2bcc;
}

/* Social */
#social {
  padding: 80px 50px;
  text-align: center;
  background: #0d0d0d;
  position: relative;
  z-index: 2;
}

#social h2 {
  color: #a64dff;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-block;
  width: 70px;
  height: 70px;
  padding: 15px;
  border-radius: 50%;
  background: linear-gradient(45deg, #a64dff, #ff00cc, #a64dff);
  background-size: 400% 400%;
  box-shadow: 0 0 15px rgba(166, 77, 255, 0.6);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  animation: gradientShift 6s linear infinite;
}

.social-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  filter: blur(15px);
  z-index: -1;
}

.social-icon img {
  width: 100%;
  height: 100%;
  filter: invert(100%) brightness(2) drop-shadow(0 0 5px #a64dff);
}

.social-icon:hover {
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(166, 77, 255, 0.8);
  background-position: 100% 50%;
}

/* Animated gradient effect */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Footer */
footer {
  background: #111;
  text-align: center;
  padding: 20px;
  color: #777;
}

/* Portfolio Detail Pages */
.portfolio-detail {
  padding: 80px 50px;
  text-align: center;
}

.portfolio-detail h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #a64dff;
}

.portfolio-detail p {
  color: #ccc;
  max-width: 800px;
  margin: 0 auto 40px;
}

.portfolio-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

/* Single Poster Layout */
.portfolio-showcase.single {
  display: flex;
  justify-content: center;
}

.portfolio-showcase.single img {
  width: auto;
  max-height: 80vh;   /* Prevents massive vertical scroll */
  max-width: 600px;   /* Keeps it clean on desktop */
  object-fit: contain;
}

/* Video sizing for portfolio showcase */
.portfolio-showcase.single video {
  width: 100%;
  max-width: 800px;    /* constrain large screens */
  max-height: 80vh;    /* prevent tall videos from overflowing */
  height: auto;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(166, 77, 255, 0.4);
  object-fit: contain;
}

.portfolio-showcase img {
  width: 70%;
  max-width: 900px;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(166, 77, 255, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-showcase img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(166, 77, 255, 0.7);
}

/* ===== Responsive Navbar (Mobile) ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 25px;
    height: 70px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 220px;
    height: calc(100vh - 70px);
    background: #111;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    padding-top: 40px;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 0;
  }

  .menu-toggle {
    display: flex;
  }

  /* Animate hamburger to X */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  /* Responsive About */
  #about {
    padding: 60px 30px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .about-container img {
    max-width: 80%;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  /* Portfolio Detail Pages - Tablet */
  .portfolio-detail {
    padding: 40px 20px;
  }
}


.portfolio-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(166, 77, 255, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  text-align: center;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(166, 77, 255, 0.6);
}

.portfolio-btn {
  display: inline-block;
  padding: 20px 15px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  background: transparent; /* button inherits card style */
  transition: color 0.3s;
}

.portfolio-btn:hover {
  color: #a64dff;
}


/* ===== Brands / Companies Section ===== */
.brands {
  margin-top: 40px;
}

.brands h3 {
  font-size: 1.4rem;
  color: #a64dff;
  margin-bottom: 20px;
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.brand-logos a {
  display: inline-block;
  transition: transform 0.3s, filter 0.3s;
}

.brand-logos img {
  height: 50px;
  width: auto;
  filter: brightness() invert(0);
  opacity: 0.8;
  transition: 0.3s;
}

.brand-logos a:hover img {
  transform: scale(1.1);
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(166, 77, 255, 0.7));
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .brand-logos {
    justify-content: center;
    gap: 20px;
  }

  .brand-logos img {
    height: 40px;
  }
}



/* ===== Brands Page ===== */
#brands-page {
  padding: 120px 50px;
  text-align: center;
  background: #0d0d0d;
}

#brands-page h1 {
  color: #a64dff;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

#brands-page .intro {
  max-width: 700px;
  margin: 0 auto 50px;
  color: #ccc;
  line-height: 1.7;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  justify-items: center;
}

.brand-card {
  background: #111;
  border-radius: 15px;
  padding: 30px;
  max-width: 300px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 15px rgba(166, 77, 255, 0.3);
}

.brand-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(166, 77, 255, 0.6);
}

.brand-card img {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness() invert(0);
}

.brand-card h3 {
  color: #a64dff;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.brand-card p {
  color: #bbb;
  font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 768px) {
  #brands-page {
    padding: 100px 25px;
  }

  .brand-card {
    max-width: 90%;
  }
}@media (max-width: 768px) {
  #brands-page {
    padding: 100px 25px;
  }

  #brands-page h1 {
    font-size: 1.8rem;
  }

  #brands-page .intro {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 40px;
  }

  .brand-card {
    max-width: 90%;
    padding: 20px;
  }

  .brand-card p {
    font-size: 0.9rem;
  }
}

/* Featured Work Slider */
#featured {
  background: #0d0d0d;
  padding: 60px 50px;
  margin: 0;
  text-align: center;
}

#featured h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 40px;
  font-weight: 700;
}

#featured h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: #a64dff;
  margin: 15px auto 0;
}

.featured-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 10;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.slide-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #a64dff;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 20;
  backdrop-filter: blur(5px);
}

/* Slider Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(166, 77, 255, 0.7);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 30;
  border-radius: 5px;
  font-weight: bold;
}

.slider-btn:hover {
  background: rgba(166, 77, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

/* Dot Indicators */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 30;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot.active {
  background: #a64dff;
  transform: scale(1.3);
  border-color: #fff;
}

.dot:hover {
  background: rgba(166, 77, 255, 0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .featured-slider {
    height: 60vh;
    max-height: 500px;
  }
  
  .slider-btn {
    font-size: 1.5rem;
    padding: 10px 15px;
  }
  
  .slide-caption {
    font-size: 0.95rem;
    padding: 8px 16px;
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .featured-slider {
    height: 50vh;
    max-height: 350px;
  }
  
  .slider-btn {
    font-size: 1.2rem;
    padding: 8px 12px;
    display: none;
  }
  
  .slide-caption {
    font-size: 0.85rem;
    padding: 6px 12px;
    bottom: 10px;
  }
  
  .slider-dots {
    bottom: 10px;
    gap: 8px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Portfolio Mobile - Small phones */
@media (max-width: 480px) {
  .portfolio-detail {
    padding: 20px 15px;
  }

  .portfolio-showcase.single img {
    max-width: 90vw;
  }
}

/* Make portfolio images more full-width on small devices */
@media (max-width: 768px) {
  .portfolio-showcase img {
    width: 90%;
    max-width: 100%;
  }
}
