/* GLOBAL RESET & MOBILE OPTIMIZATIONS */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
a {
  touch-action: manipulation;
}

/* Hero Section */
.hero {
  background-image: url("/static/images/cape-town-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  text-align: center;
  color: #fff;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1,
.hero-content h2 {
  color: white;
  font-size: clamp(2rem, 6vw, 70px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 10px;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}


.hero-content h2 {
  animation-delay: 0.3s;
}

/* Personal Service Section */
.personal-service-section {
  background-color: #464646;
  padding: 80px 20px;
  text-align: center;
  border: 5px solid #464646;
  border-radius: 5px;
}

.personal-service-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.personal-service-section p1 {
  font-size: 1.25rem;
  color: #ffffff;
  max-width: 800px;
  line-height: 1.6;
}

.personal-service-section span {
  color: #ffffff;
  font-weight: 800;
}

/* Focus Slideshow */
.focus-slideshow {
  position: relative;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.focus-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.focus-slideshow .slide.active {
  opacity: 1;
  position: relative;
}

.focus-slideshow .slide img {
  width: 100%;
  height: auto;
  display: block;
}

.focus-slideshow-text {
  flex: 1 1 auto;
  min-width: 200px;
  position: relative;
}

.focus-slideshow-text .slide-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.focus-slideshow-text .slide-text.active {
  opacity: 1;
  position: relative;
}

/* Focus on Your Business */
.focus-business-section {
  background-color: #f5f5f5;
  text-align: center;
}

.focus-business-section h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 300;
  font-family: 'Montserrat', sans-serif;
  color: #464646;
}

.focus-business-section h2 span {
  color: #347322;
  font-weight: 800;
}

.focus-business-section .subtitle {
  color: #444;
  margin-bottom: 50px;
  font-size: 1rem;
}

.focus-business-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.focus-image img {
  max-width: 400px;
  height: auto;
}

.focus-text {
  flex: 1 1 auto;
  min-width: 200px;
}

.focus-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 80px;
  padding-top: 40px;
}

.focus-feature {
  text-align: center;
  max-width: 200px;
}

.focus-icon {
  width: 170px;
  height: 170px;
  border: 5px solid #347322;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-icon img {
  width: 100px;
  height: auto;
}

.focus-feature p {
  font-size: 1rem;
  color: #222;
}

/* Why IDATA Services */
.why-idata-section {
  background-color: #fff;
  padding: 60px 20px 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
}

.why-idata-section .container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1300px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.idata-image img {
  max-width: 100%;
  height: auto;
  animation: fadeUp 1s ease-out forwards;
}

.idata-content {
  flex: 1;
  min-width: 600px;
}

.idata-heading {
  border: 5px solid #347322;
  padding: 20px 40px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 40px;
  text-align: center;
}

.idata-heading span {
  font-weight: 400;
  color: #464646;
}

.idata-heading strong {
  color: #347322;
  font-weight: 800;
  letter-spacing: -4px;
  margin: 0 10px;
}

.idata-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.idata-box {
  border: 4px solid #f1f1f1;
  padding: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.03);
  color: #464646;
  position: relative;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idata-box .hover-text {
  display: none;
}

.idata-box:hover .default-text {
  display: none;
}

.idata-box:hover .hover-text {
  display: inline;
}

.idata-summary {
  margin-top: 50px;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.8;
  color: #1e1e1e;
  max-width: 100%;
  font-weight: 400;
}

/* Parallax Section */
.parallax-section,
.parallax-transition {
  background-image: url('/static/images/hands-in-motion-over-paper.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  height: 300px;
  margin-bottom: 30px;
}

/* App Showcase */
.app-showcase-section {
  padding: 40px 20px;
  background-color: white;
}

.app-showcase {
  background-color: #fff;
  padding: 40px 20px 80px;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.device-images img {
  max-width: 100%;
  height: auto;
}

.app-content {
  max-width: 500px;
}

.app-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 30px;
  font-weight: 400;
}

.app-content h2 span {
  color: #347322;
  font-weight: bold;
  letter-spacing: 2px;
}

.app-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.app-features li {
  font-size: 1rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
}

.icon-circle,
.icon-square,
.icon-diamond {
  width: 12px;
  height: 12px;
  background-color: #347322;
  display: inline-block;
}

.icon-circle {
  border-radius: 50%;
}

.icon-diamond {
  transform: rotate(45deg);
}

.icon-triangle {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 14px solid #347322;
  display: inline-block;
}

.store-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.store-btn {
  height: 40px;
}

/* Newsletters Section */
.newsletters-section {
  background-color: #347322;
  padding: 80px 20px;
  text-align: center;
  color: white;
}

.newsletter-header h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 2px;
  margin-bottom: 60px;
  font-weight: 300;
}

.newsletter-header span {
  font-weight: 800;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  margin: 0 auto;
  gap: 60px 80px;
  text-align: left;
}

.newsletter-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 10px;
  box-sizing: border-box;
}

.newsletter-title,
.newsletter-subtitle {
  background-color: #464646;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  width: 100%;
  border-radius: 4px;
}

.newsletter-date {
  margin-top: 5px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #e2e2e2;
  padding-left: 2px;
}

.newsletter-btn-wrap {
  margin-top: 60px;
}

.see-more-btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid #1e1e1e;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e1e1e;
  background-color: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 2px 2px 0 #1e1e1e;
}

.see-more-btn:hover {
  background-color: #1e1e1e;
  color: white;
  box-shadow: none;
}


lb-youtube-embed.youtube-embed {
  display: inline-block;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
}

/* Player container fills whole custom element absolutely */
.youtube-embed__player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* iframe fills entire player container */
.youtube-embed__player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* End screen overlay fills whole area too */
.youtube-embed__end-screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

lb-youtube-embed[ended="true"] .youtube-embed__end-screen-overlay {
  display: flex;
}

/* Background and button as before... */
.youtube-embed__end-screen-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.4);
  z-index: 1;
}

.youtube-embed__end-screen-button {
  z-index: 2;
  border: none;
  background: none;
  cursor: pointer;
  width: 80px;
  height: 80px;
  transition: transform 0.2s ease;
}

.youtube-embed__end-screen-button:hover {
  transform: scale(1.1);
}

.youtube-embed__end-screen-button svg {
  display: block;
}


/* Contact Section */
.contact-section {
  font-family: 'Montserrat', sans-serif;
  padding: 60px 20px;
  text-align: center;
  color: #222;
}

.contact-section h2 {
  font-size: clamp(2rem, 5vw, 40px);
  margin-bottom: 40px;
  letter-spacing: 1px;
  color: #347322;
  font-weight: 800;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  gap: 40px;
}

.contact-info,
.contact-form {
  flex: 1 1 300px;
  max-width: 400px;
}

.contact-info h4 {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 30px;
  margin: 20px 0 10px;
}

.contact-info p {
  font-size: 14px;
  line-height: 1.6;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input {
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  font-size: 14px;
  background: transparent;
}

.contact-form input:focus {
  outline: none;
  border-bottom-color: #000;
}

.contact-form button {
  background-color: #347322;
  color: white;
  border: none;
  padding: 10px;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #2a601a;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px;
    background-attachment: scroll;
  }

  .focus-business-wrapper,
  .app-container,
  .contact-container {
    flex-direction: column;
    gap: 30px;
  }

  .idata-boxes,
  .newsletter-grid {
    grid-template-columns: 1fr;
  }

  .idata-content {
    min-width: unset;
  }

  .focus-features {
    gap: 40px;
    padding-top: 20px;
  }

  .idata-heading {
    padding: 15px 20px;
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero-content h1,
  .hero-content h2,
  .app-content h2,
  .contact-section h2 {
    text-align: center;
  }
}

.parallax-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px 40px;
  max-width: auto;
}

.idata-summary {
  color: white;
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

@media screen and (max-width: 768px) {
  .parallax-transition {
    background-attachment: scroll;
    min-height: 50vh;
    padding: 20px 10px;
  }

  .parallax-overlay {
    padding: 15px 20px;
    border-radius: 4px;
  }

  .idata-summary {
    font-size: 1rem;
  }
}