/* ================== GLOBAL STYLES ================== */
body {
  margin: 0;
  background: #0f172a;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

#network-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ================== HEADER ================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background: #101112;
  flex-wrap: wrap;
  z-index: 999;
  position: relative;
}

header .logo { height: 105px; }

/* Logo Style */
.logo {
  animation: floatLogo 3s ease-in-out infinite;
}

/* Up-Down Animation */
@keyframes floatLogo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.call-btn {
  display: inline-block;
  padding: 10px 17px;
  text-align:center;
  background: linear-gradient(45deg, #22c55e, #16a34a);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  margin-left: 180px;
  transition: 0.3s ease;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.call-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

header nav { display: flex; gap: 30px; }
header nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}
header nav a:hover { color: #22c55e; transform: scale(1.05); }

/* ================== CAROUSEL ================== */
.scene {
  width: 100%;
  height: 450px;
  perspective: 1200px;
  margin: 40px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel {
  width: 250px;
  height: 350px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-item {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  overflow: hidden;
  backface-visibility: visible;
  border: 1px solid rgba(255,255,255,0.1);
}

.carousel-item img { width: 100%; height: 100%; object-fit: cover; }

.carousel-overlay {
  position: absolute;
  bottom: 0;
  height: 42%; /* Adjusted to 42% to fit title and button */
  width: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5px;
  box-sizing: border-box;
}

.carousel-overlay h3 { color: #fff; margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; text-align: center; }
.carousel-overlay p { color: #22c55e; margin: 5px 0; font-weight: bold; font-size: 14px; }
.carousel-overlay a {
  padding: 8px 20px;
  background: #22c55e;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-top: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}
.carousel-overlay a:hover { background: #16a34a; transform: scale(1.05); box-shadow: 0 6px 15px rgba(0,0,0,0.3); }
.carousel-overlay a:active { transform: scale(0.95); }

/* ================== BUTTONS ================== */
.buttons {
  text-align: center;
  margin-bottom: 50px;
}
.buttons button {
  padding: 10px 15px;
  margin: 5px;
  border: none;
  border-radius: 6px;
  background: #22c55e;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
}
.buttons button:hover { background: #16a34a; transform: scale(1.05); box-shadow: 0 6px 15px rgba(0,0,0,0.3);}
.buttons button:active { transform: scale(0.95); }

/* ================== FOOTER ================== */
footer {
  background: #101112;
  color: #e5e7eb;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

footer a { text-decoration: none; color: #22c55e; }

.social-icons { padding-right: 80px; }
.social-icons a { color: #e5e7eb; margin: 0 15px; font-size: 24px; transition: 0.3s; }
.social-icons a:hover { color: #22c55e; }


/* ================== FIXED MOBILE RESPONSIVENESS ================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px !important;
}

/* First row left */
header .logo { 
  height: 110px !important;
  width: 30%;
}

/* First row right */
.call-btn { 
  margin-left: 0 !important;
  font-size: 14px;
  padding: 8px 15px;
  width: 20%;
  text-align: right;
  display: flex;
  justify-content: flex-end;
}

/* Second row menu */
header nav { 
  width: 100%;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

  .scene { 
    height: 340px; 
    width: 100vw;
    overflow: hidden;
    margin: 20px 0;
  }

  .carousel { 
    width: 180px !important; 
    height: 250px !important; 
  }

  /* Overlay size for mobile to ensure no cutoff */
  .carousel-overlay {
    height: 46%;
  }

  .carousel-item {
    backface-visibility: hidden;
  }

  .buttons { 
    display: flex; 
    overflow-x: auto; 
    white-space: nowrap;
    padding: 10px !important; 
    gap: 10px;
    -webkit-overflow-scrolling: touch;
  }

  footer { 
    flex-direction: column; 
    text-align: center; 
    padding: 20px 15px !important; 
    gap: 15px;
  }

  .social-icons { 
    padding-right: 0 !important; 
    margin-bottom: 20px; 
  }
}

@media (max-width: 480px) {
  .carousel { 
    width: 150px !important; 
    height: 210px !important; 
  }
  header .logo { height: 90px !important; }
  .carousel-overlay { height: 50%; }
}


/* ===== MOBILE MENU ===== */

.menu-toggle{
display:none;
font-size:26px;
color:white;
cursor:pointer;
}

/* mobile layout */
@media (max-width:768px){

header{
display:flex;
flex-wrap:wrap;
align-items:center;
position:relative;
}

.logo{
order:1;
}

.call-btn{
order:2;
margin-left:auto;
margin-right:50px;
}

.menu-toggle{
display:block;
order:3;
}

/* Mobile menu */
header nav {
  display: none;
  position: absolute;
  top: 60px;            /* adjust based on your header height */
  right: 10px;          /* align menu to the right edge */
  background: #101112;
  flex-direction: column;
  gap: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  width: max-content;   /* shrink to fit menu text */
  text-align: left;    /* align text inside box to the right */
  z-index: 999;
}

header nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
}

header nav.active {
  display: flex;
}

/* Optional: small screen adjustment */
@media (max-width: 480px) {
  header nav {
    right: 5px;
    padding: 12px 16px;
  }
}

.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 8px; /* equal left & right */
}


