/* ====================================
   GLOBAL STYLES
==================================== */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: url('../banners/services.png') no-repeat center top;
  background-size: 1920px auto;
  font-family: 'Poppins', sans-serif;
  image-rendering: pixelated;
}

.container {
  max-width: 1920px;
  margin: 0 auto;
}

.box-wrapper {
  border: 2px solid white;
  margin: 12px;
  padding: 12px;
  background: transparent;
}

/* ====================================
   SCROLL TO TOP BUTTON
==================================== */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 90px;
  height: 90px;
  font-size: 24px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: background 0.3s, transform 0.2s;
  box-sizing: border-box;
  max-width: 100vw;
  pointer-events: auto;
}

#scrollToTopBtn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

#scrollToTopBtn svg {
  display: block;
  margin: auto;
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
}


#scrollToTopBtn:hover svg {
  transform: scale(1.4); /* Increase arrow size on hover */
}

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
}


/* Mobile adjustments */
@media (max-width: 600px) {
  #scrollToTopBtn {
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 16px;
    border-width: 1.2px;
  }

  #scrollToTopBtn svg {
    width: 18px;
    height: 18px;
  }
}





/* ====================================
   NAVIGATION SECTION
==================================== */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  background-color: transparent;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 160px;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-item {
  color: white;
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  padding: 12px 18px;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
  transition: background 0.3s, transform 0.2s;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.logo {
  padding: 4px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 140px;
  height: 140px;
  overflow: hidden;
  transition: background 0.3s, transform 0.2s;
  position: relative;
  z-index: 1000;
}

.logo:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.logo img {
  width: 100px;
  height: 100px;
  display: block;
  animation: rotateLogo 4s linear infinite;
  transform-origin: center;
}

@keyframes rotateLogo {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === HAMBURGER MENU === */
.hamburger {
  display: none;
  font-size: 28px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  padding: 12px 18px;
  z-index: 1001;
  position: absolute;
  top: 20px;
  left: 20px;
}

/* === MOBILE NAVIGATION === */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.95);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  width: 80%;
  max-width: 320px;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.3s;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav.active {
  display: flex;
}


/* ====================================
   RESPONSIVE NAVIGATION (≤1000px)
==================================== */
@media (max-width: 1000px) {
  .nav-item {
    display: none;
  }


  .hamburger {
    display: block;
    z-index: 1002;
  }

  .logo {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .logo img {
    width: 70px;
    height: 70px;
  }


  .mobile-nav {
    display: none;
  }


  .mobile-nav.active {
    display: flex;
  }
}



/* Loader screen full page */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black; /* solid black background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Hide the rest of the page while loading */
body.loading main,
body.loading header,
body.loading footer {
  visibility: hidden;
}

/* Rotating logo */
#loading-logo {
  width: 120px;
  height: 120px;
  animation: spin 3s linear infinite; /* continuous slower spin */
}

/* Continuous rotation animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Class to stop rotation instantly */
.stop-rotation {
  animation: none !important;
}

/* Fade out animation for loader */
.fade-out {
  animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* ====================================
  HERO SECTION
==================================== */
.hero-box {
  padding: 100px 60px;
  border: 2px solid white;
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: left;
}

/* Hero image grow animation */
.hero-img {
  width: 900px;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
  transition: transform 1s ease, opacity 1s ease;
}

.hero-img.animate-hero {
  opacity: 1;
  transform: scale(1);
}

/* Fade-in animation for paragraphs */
.hero-paragraphs p {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
}

.hero-paragraphs p.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* Keyframes for fade in + slide up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-paragraphs p {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 24px;
  text-align: center;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  color: white;
}

/* Responsive for smaller screens */
@media screen and (max-width: 768px) {
  .hero-box {
    padding: 40px 20px;
    border-width: 1px;
    flex-direction: column;
    align-items: center;
  }

  .hero-content {
    max-width: 100%;
    gap: 24px;
    text-align: center;
    padding: 0 12px;
  }

  .hero-img {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .hero-paragraphs p {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 16px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  }
}



/* ====================================
SERVICE SECTION WRAPPER
==================================== */
.service-box {
  border: 2px solid white;
  padding: 80px 60px;
  margin: 12px;
}

/* ==== OVERLAY ==== */
.box-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* ← changed from 0.2 to 0.5 */
  z-index: 1.5;
  pointer-events: none;
}

/* ==== COMMON BOX STYLE ==== */
.box-1a, .box-2a, .box-3a, .box-4a, .box-5a {
  width: 980px;
  height: 350px;
  border: 2px solid white;
  position: relative;
  margin: 60px auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 20px;
}

.box-1a {
  margin: 0 auto 60px auto;
}

/* ==== BACKGROUND IMAGE ==== */
.box-bg-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.box-1a .box-bg-image { background-image: url('../images/adobe/smarket.jpeg'); }
.box-2a .box-bg-image { background-image: url('../images/adobe/webdes.jpeg'); }
.box-3a .box-bg-image { background-image: url('../images/adobe/vidphotog.jpeg'); }
.box-4a .box-bg-image { background-image: url('../images/adobe/sprod.jpeg'); }
.box-5a .box-bg-image { background-image: url('../images/adobe/operation.jpeg'); }

/* ==== VIDEO ==== */
.box-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  pointer-events: none;
}

/* ==== HOVER INTERACTION ==== */
.box-1a:hover .box-video,
.box-2a:hover .box-video,
.box-3a:hover .box-video,
.box-4a:hover .box-video,
.box-5a:hover .box-video {
  opacity: 1;
}

.box-1a:hover .box-bg-image,
.box-2a:hover .box-bg-image,
.box-3a:hover .box-bg-image,
.box-4a:hover .box-bg-image,
.box-5a:hover .box-bg-image {
  opacity: 0;
}

/* ==== HEADINGS ==== */
.box-1b, .box-3b, .box-5b {
  position: relative;
  height: 100px;
  padding: 0 20px;
  z-index: 3;
  border-radius: 8px;
}

.box-2b, .box-4b {
  position: absolute;
  bottom: 40px; right: 40px;
  padding: 0 20px;
  z-index: 3;
  border-radius: 8px;
}

.box-1b h2, .box-2b h2, .box-3b h2, .box-4b h2, .box-5b h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 80px;
  color: white;
  margin: 0;
  text-align: right;
  line-height: 1.1;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==== PARAGRAPH REVEAL ==== */
.box-1c, .box-2c, .box-3c, .box-4c, .box-5c {
  position: relative;
  width: 700px;
  align-self: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 3;
}

.box-2c, .box-4c {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.box-1a:hover .box-1c,
.box-2a:hover .box-2c,
.box-3a:hover .box-3c,
.box-4a:hover .box-4c,
.box-5a:hover .box-5c {
  opacity: 1;
}

.box-1c p, .box-2c p, .box-3c p, .box-4c p, .box-5c p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: white;
  margin: 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

/* ==== SUMMARY TEXT ==== */
.service-summary {
  margin: 60px auto;
  max-width: 980px;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: white;
  padding: 0 20px;
}

@media screen and (max-width: 768px) {
  .service-box {
    padding: 40px 12px;
    margin: 8px;
    border-width: 1px;
    box-sizing: border-box;
  }

  .box-1a, .box-2a, .box-3a, .box-4a, .box-5a {
    width: 100%;
    max-width: 100%;
    height: 300px;
    margin: 24px 0;
    padding: 0;
    border-width: 1px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
  }

  .box-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: auto;
  }

  .box-1b, .box-2b, .box-3b, .box-4b, .box-5b {
    margin-top: auto;
    z-index: 2;
    text-align: center;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .box-1b h2, .box-2b h2, .box-3b h2, .box-4b h2, .box-5b h2 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
    text-align: center;
    color: #fff;
  }

  .box-1c, .box-2c, .box-3c, .box-4c, .box-5c {
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 12px 16px;
    box-sizing: border-box;
    display: none;    
    opacity: 0;       
    transition: none;    
  }

  .box-1c p, .box-2c p, .box-3c p, .box-4c p, .box-5c p {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.2); 
    color: #fff;
    padding: 8px;
    border-radius: 4px;
  }

  .service-summary {
    margin: 32px auto;
    font-size: 14px;
    line-height: 1.6;
    padding: 0 12px;
  }


  .box-1b.hide-heading h2,
  .box-2b.hide-heading h2,
  .box-3b.hide-heading h2,
  .box-4b.hide-heading h2,
  .box-5b.hide-heading h2 {
    display: none;
  }


  .box-1c.show-paragraph,
  .box-2c.show-paragraph,
  .box-3c.show-paragraph,
  .box-4c.show-paragraph,
  .box-5c.show-paragraph {
    display: block;
    opacity: 1 !important;
    transition: none;
  }
}



/* ====================================
   CALL TO ACTION SECTION
==================================== */
.box-wrapper.cta-box {
  margin: 12px; /* 12px margin outside the border */
  padding: 40px;
  background: transparent;
  border: 2px solid white;
  color: white;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-content {
  width: 100%;
  max-width: 960px;
  padding: 0 20px;
  box-sizing: border-box;
}

.cta-title {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.cta-text {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.8;
  margin: 0 auto;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .stroke-section img {
    width: 1920px;
    margin: 5px;
  }

  .box-wrapper.cta-box {
    margin: 12px;
    padding: 20px;
    border-width: 1px;
  }

  .cta-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .cta-text {
    font-size: 12px;
    line-height: 1.8;
    padding: 0 12px;
  }
}









/* ====================================
  FOOTER BOX STYLES
==================================== */

.footer-box {     
  width: 100%;
  margin: 0 auto;          
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 2px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}



.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1120px;
  width: 100%;
  gap: 60px;
}

/* LEFT SIDE STRUCTURE */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-top: 50px; /* Adds vertical spacing above */
}


.footer-text {
  margin-top: 10px;
}

.footer-text p {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 75px;
  color: white;
  margin: 0;
  line-height: 1.2; /* Try 0.9 or 0.85 if needed */
}


/* Icons + Navigation Columns */
.footer-columns {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

.footer-icons,
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Icons Styling */
.footer-icons a img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  display: block;
  transition: background-color 0.3s ease;
  border-radius: 6px;
  padding: 6px;
}

/* Hover effect for all icons */
.footer-icons a img:hover {
  background-color: rgba(255, 255, 255, 0.3);
}


/* Nav Links Styling */
.footer-nav a {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: white;
  text-decoration: none;
  padding: 8px 8px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.footer-nav a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: black;
}

/* ==== FOOTER ROULETTE WRAPPER ==== */
.footer-right {
  width: 300px; /* Adjust based on icon sizes */
  height: 580px;
  overflow: hidden;
  position: relative;
  
}

/* ==== ROLLING STRIP ==== */
.footer-right-track {
  display: flex;
  gap: 0;
  animation: scrollLeft 6s linear infinite;
  margin-bottom: 40px;
}

/* ==== ICONS ==== */
.footer-right-track img {
  width: 100px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ==== KEYFRAMES FOR LOOPING ==== */
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-300px); } /* Match width of 3 icons */
}

/* ==== CREDITS ==== */

.credits-box {
  text-align: center;
    margin-top: 0;
  padding-top: 0;
}

.credits-text {
  font-size: 14px;
  color: white;
  font-weight: 400;
}

/* ==== CREDITS SECTION ==== */
.credits-box {
  padding: 20px 0;
  background-color: black;
  display: flex;
  justify-content: center;
}

.credits-container {
  width: 960px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.credits-left,
.credits-right {
  font-size: 14px;
  color: white;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
}
@media screen and (max-width: 768px) {
  .footer-box {
    padding: 20px;
    box-sizing: border-box;
  }

  .footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    max-width: 100%;
  }

  .footer-left {
    width: 60%;
    margin-top: 20px;
  }

  .footer-text p {
    font-size: 32px;
    line-height: 1.1;
    margin: 0;
  }

  .footer-columns {
    display: flex;
    gap: 16px;
    margin-top: 12px;
  }

  .footer-icons a img {
    width: 30px;
    height: 30px;
    padding: 2px;
  }

  .footer-nav {
    padding-bottom: 4px;
  }

  .footer-nav a {
    font-size: 16px;
    padding: 5px 6px;
  }

  .footer-right {
    width: 40%;
    height: auto;
    overflow: hidden;
    margin-top: 0;
  }

  .footer-right-track {
    display: flex;
    gap: 0;
    animation: scrollLeft 6s linear infinite;
    margin-bottom: 20px;
  }

  .footer-right-track img {
    width: 60px;
    height: auto;
    object-fit: contain;
    display: block;
  }

  @keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-180px); }
  }

  .credits-box {
    padding: 12px 0;
  }

  .credits-container {
    width: 100%;
    padding: 0 12px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .credits-left {
    font-size: 10px;
    white-space: nowrap;
    text-align: center;
  }

  .credits-right {
    display: none;
  }
}