/* style.css - PiZone White Background Theme with Orange & Black Accents */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Color Variables and Reset */
:root {
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* PiZone Brand Color Scheme - White, Orange & Black */
  --color-primary: 15, 87%, 55%;
  /* Orange #f05a28 */
  --color-primary-rgb: 240, 90, 40;
  --color-secondary: 220, 24%, 12%;
  /* Dark Slate / Black #0f172a */
  --color-secondary-rgb: 15, 23, 42;

  --color-dark: 220, 24%, 12%;
  /* Slate 900 */
  --color-dark-rgb: 15, 23, 42;

  --color-light: 210, 40%, 98%;
  /* Light Slate #f8fafc */
  --color-light-rgb: 248, 250, 252;

  --color-text-dark: 220, 24%, 12%;
  /* Slate 900 #0f172a */
  --color-text-muted: 215, 16%, 47%;
  /* Slate 500 #64748b */

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: #ffffff;
  color: hsl(var(--color-text-dark));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Corporate White Navigation Bar */
.navbar-custom {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar-custom.scrolled {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 0.8rem 2rem;
}

.navbar-brand-custom {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: hsl(var(--color-secondary));
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand-custom i {
  color: hsl(var(--color-primary));
}

.navbar-brand-custom img {
  width: 120px;
  /* height: 50px; */
}

.navbar-brand-custom span {
  color: hsl(var(--color-primary));
}

.nav-link-custom {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--color-text-muted)) !important;
  transition: var(--transition-fast);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-link-custom:hover {
  color: hsl(var(--color-primary)) !important;
  background: rgba(240, 90, 40, 0.04);
}

.nav-link-custom.active {
  color: hsl(var(--color-primary)) !important;
}

/* Hero Carousel Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  background-color: #ffffff;
  overflow: hidden;
}

/* Custom full-screen Carousel Items */
.carousel,
.carousel-inner,
.carousel-item {
  height: 100%;
  width: 100%;
}

/* Subtle Orange Background Glow */
.carousel-bg-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(100px);
  opacity: 0.09;
  /* Elegant orange/color back-glow on white background */
  z-index: 1;
  transition: var(--transition-smooth);
}

/* Overlay gradient for contrast on white theme */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.92) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, transparent 20%, transparent 80%, rgba(255, 255, 255, 1) 100%);
  z-index: 2;
}

/* Badge styled element (Orange tint) */
.slide-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(240, 90, 40, 0.06);
  border: 1px solid rgba(240, 90, 40, 0.12);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  color: hsl(var(--color-primary));
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(240, 90, 40, 0.04);
  display: inline-block;
  opacity: 0;
}

/* Slide heading (Black text with Orange highlights) */
.slide-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.8rem;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  color: hsl(var(--color-secondary));
  opacity: 0;
}

.slide-title span {
  color: hsl(var(--color-primary));
}

/* Elegant description paragraph */
.slide-desc {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.65;
  color: hsl(var(--color-text-muted));
  margin-bottom: 2.2rem;
  max-width: 580px;
  opacity: 0;
}

/* Slide Action Buttons */
.slide-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  opacity: 0;
}

/* Solid Orange Button */
.btn-gradient-custom {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  color: #ffffff;
  background: hsl(var(--color-primary));
  border: none;
  box-shadow: 0 5px 20px rgba(240, 90, 40, 0.25);
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gradient-custom:hover {
  background: hsl(var(--color-secondary));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.2);
  color: #ffffff;
}

/* Corporate Outline Button */
.btn-outline-custom {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  color: hsl(var(--color-secondary));
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.15);
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-custom:hover {
  background: rgba(15, 23, 42, 0.03);
  border-color: hsl(var(--color-secondary));
  transform: translateY(-3px);
  color: hsl(var(--color-secondary));
}

/* Device Mockup Container */
.mockup-wrapper {
  position: relative;
  display: inline-block;
  padding: 10px;
  perspective: 1500px;
  z-index: 5;
}

/* Mockup screenshot styles with soft slate shadows */
.project-mockup-img {
  width: 100%;
  max-width: 650px;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08),
    0 5px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  opacity: 0;
  transform: translateY(30px) rotateY(-5deg);
}

/* Circular Navigation Controls */
.carousel-control-prev-custom,
.carousel-control-next-custom {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--color-secondary));
  cursor: pointer;
  z-index: 15;
  transition: var(--transition-smooth);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.carousel-control-prev-custom {
  left: 40px;
}

.carousel-control-next-custom {
  right: 40px;
}

.carousel-control-prev-custom:hover,
.carousel-control-next-custom:hover {
  background: hsl(var(--color-primary));
  border-color: hsl(var(--color-primary));
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(240, 90, 40, 0.3);
}

.carousel-control-prev-custom i,
.carousel-control-next-custom i {
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.carousel-control-prev-custom:hover i {
  transform: translateX(-2px);
}

.carousel-control-next-custom:hover i {
  transform: translateX(2px);
}

/* Indicators (Light gray bars turning to Orange) */
.carousel-indicators-custom {
  flex-wrap: wrap;
  max-width: 90%;
  justify-content: center;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 15;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel-item .container {
  min-height: 100vh;
}

.carousel-indicators-custom button {
  width: 35px;
  height: 5px;
  border: none;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-indicators-custom button:hover {
  background: rgba(15, 23, 42, 0.2);
}

.carousel-indicators-custom button.active {
  width: 60px;
  background: hsl(var(--color-primary));
  box-shadow: 0 2px 10px rgba(240, 90, 40, 0.25);
}

/* Floating Slide Counter (White Glassmorphic with Orange current) */
.carousel-counter-floating {
  position: absolute;
  top: 110px;
  right: 40px;
  z-index: 20;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: hsl(var(--color-secondary));
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 5px;
}

.carousel-counter-floating .current {
  color: hsl(var(--color-primary));
  font-weight: 800;
}

.carousel-counter-floating .divider {
  color: rgba(15, 23, 42, 0.15);
  font-weight: 300;
}

.carousel-counter-floating .total {
  color: hsl(var(--color-text-muted));
  font-weight: 500;
}

/* --- ANIMATIONS WHEN SLIDE IS ACTIVE --- */

/* Ambient glow subtle pulse */
.carousel-item.active .carousel-bg-glow {
  animation: scaleUpGlow 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Mockup fade and tilt */
.carousel-item.active .project-mockup-img {
  animation: mockUpFadeIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes scaleUpGlow {
  0% {
    transform: scale(1);
    opacity: 0.09;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.14;
  }

  100% {
    transform: scale(1.02);
    opacity: 0.09;
  }
}

@keyframes mockUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) rotateY(-8deg) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateY(-3deg) scale(1);
  }
}

/* Text Fade-in and Slide-up Animations */
.carousel-item.active .slide-badge {
  animation: slideFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.carousel-item.active .slide-title {
  animation: slideFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.carousel-item.active .slide-desc {
  animation: slideFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.carousel-item.active .slide-actions {
  animation: slideFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feature Cards Section (White background) */
.info-section {
  padding: 7rem 2rem;
  background: #ffffff;
  position: relative;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  z-index: 10;
}

.section-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: hsl(var(--color-primary));
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -1px;
  color: hsl(var(--color-secondary));
  margin-bottom: 3rem;
}

/* Modern Corporate Cards on white */
.feature-card {
  background: rgb(var(--color-light-rgb));
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: #ffffff;
  border-color: rgba(240, 90, 40, 0.25);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.card-content {
  position: relative;
  z-index: 1;
}

.icon-box {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  background: rgba(240, 90, 40, 0.06);
  border: 1px solid rgba(240, 90, 40, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--color-primary));
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.feature-card:hover .icon-box {
  background: hsl(var(--color-primary));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(240, 90, 40, 0.2);
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: hsl(var(--color-secondary));
  margin-bottom: 0.8rem;
}

.card-desc {
  color: hsl(var(--color-text-muted));
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Deep Slate / Black Footer Section */
.footer-custom {
  background: #0f172a;
  /* Slate 900 matching PiZone corporate footer */
  padding: 4.5rem 2rem 2.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: hsl(var(--color-primary));
}

/* Responsive Scaling */
@media (max-width: 991.98px) {
  .hero-section {
    height: auto;
    padding: 7rem 0 5rem;
  }

  .slide-title {
    font-size: 2.8rem;
  }

  .carousel-control-prev-custom {
    left: 15px;
  }

  .carousel-control-next-custom {
    right: 15px;
  }
}

@media (max-width: 767.98px) {
  .navbar-custom {
    padding: 0.8rem 1.2rem;
  }

  .slide-title {
    font-size: 2.2rem;
    letter-spacing: -0.8px;
  }

  .slide-desc {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }

  .carousel-control-prev-custom,
  .carousel-control-next-custom {
    width: 45px;
    height: 45px;
  }

  .carousel-control-prev-custom {
    left: 10px;
  }

  .carousel-control-next-custom {
    right: 10px;
  }

  .btn-gradient-custom,
  .btn-outline-custom {
    padding: 0.8rem 1.6rem;
    font-size: 0.85rem;
  }

  .carousel-counter-floating {
    top: 90px;
    right: 15px;
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 991px) {

  .carousel-item .row {
    flex-direction: column-reverse;
    text-align: center;
  }

  .slide-desc {
    max-width: 100%;
    margin-inline: auto;
  }

  .mockup-wrapper {
    margin-bottom: 30px;
  }

  .slide-actions {
    justify-content: center;
  }

  .project-mockup-img {
    max-height: 45vh;
  }

  .carousel-counter-floating {
    top: 90px;
    right: 20px;
  }

  .carousel-indicators-custom {
    bottom: 20px;
  }
}

@media (max-width: 767px) {

  .hero-section {
    padding-top: 90px;
    min-height: auto;
  }

  .carousel-item .container {
    min-height: auto;
    padding-bottom: 100px;
  }

  .slide-badge {
    font-size: 12px;
    padding: 8px 14px;
  }

  .slide-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .slide-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .slide-actions {
    justify-content: center;
    gap: 10px;
  }

  .btn-gradient-custom,
  .btn-outline-custom {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }

  .project-mockup-img {
    width: 100%;
    max-width: 100%;
    max-height: 280px;
  }

  .carousel-control-prev-custom,
  .carousel-control-next-custom {
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev-custom {
    left: 8px;
  }

  .carousel-control-next-custom {
    right: 8px;
  }

  .carousel-counter-floating {
    top: 75px;
    right: 10px;
    font-size: 14px;
    padding: 6px 10px;
  }

  .carousel-indicators-custom {
    bottom: 10px;
    gap: 6px;
  }

  .carousel-indicators-custom button {
    width: 20px;
    height: 4px;
  }

  .carousel-indicators-custom button.active {
    width: 35px;
  }
}

@media (max-width: 480px) {

  .navbar-brand-custom img {
    width: 90px;
  }

  .slide-title {
    font-size: 1.6rem;
  }

  .slide-desc {
    font-size: 13px;
  }

  .btn-gradient-custom,
  .btn-outline-custom {
    font-size: 13px;
  }

  .carousel-counter-floating {
    display: none;
  }

  .project-mockup-img {
    max-height: 220px;
  }
}