/* General reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  /* Header layout */
  .main-header {
    display: flex;
    justify-content: space-between; /* spaces the sections apart */
    align-items: center;           /* vertically centers content */
    padding: 50px 20px;
    background: linear-gradient(90deg, #31393B 0%, #677890 100%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative; /* allow centering nav absolutely */
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  /* Center the navigation in the header */
  .nav-section {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 1200px;
  }
  
  /* Logo styling */
  .logo {
    height: 100px;
    width: auto;
  }
  
  /* Navigation styling */
  .nav-section ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    padding: 0;
  }
  
  .nav-section a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 22px;
    padding: 36px 6px; /* increases vertical whitespace above/below text */
  }
  
  .nav-section a:hover {
    color: #e6f0ff;
  }
  
  /* Intro section between header and rectangle */
  .intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    background: #ffffff;
    padding: 60px 10px; /* reduce left/right padding to allow logo closer to edge */
    max-width: 1200px;
    margin: 0 auto;
    min-height: 520px;
  }
  
  .intro-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: -80px; /* pull logo closer to page edge */
  }

  .intro-logo-img {
    display: block;
    height: 480px;
    width: auto;
    max-width: 100%;
  }
  
  .intro-text {
    display: flex;
    flex-direction: column; /* place header above paragraph */
    align-items: center;
    justify-content: center;
    max-width: 720px;
    justify-self: center; /* center within the right column */
    margin: 0 auto;
    text-align: center;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* ensure Montserrat */
  }

  .intro-text h2 {
    margin: 0 0 12px 0;
    font-weight: 700;
    font-size: 36px;
    color: #31393B; /* changed to #31393B */
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .intro-text p {
    margin: 0;
    line-height: 1.6;
    font-size: 18px;
    color: #31393B; /* changed to #31393B */
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }


  /* Gradient rectangle below header */
  .gradient-rect {
    width: 100%;
    height: 1200px; /* increased from 1000px */
    background: linear-gradient(90deg, #31393B 0%, #677890 100%);
    position: relative; /* for positioning the triangle overlay */
  }
  
  /* White triangle overlay covering full width, positioned at bottom-right; height = 50% */
  .triangle-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* half of the parent (.gradient-rect) height */
    background: white;
    /* Long sides along bottom and right edges (triangle in bottom-right, reversed) */
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
    z-index: 1;
    display: block; /* allow absolute positioning of logo */
  }
  
  .triangle-logo {
    position: absolute;
    left: 33.333%; /* centroid x of bottom-left triangle */
    top: 66.666%;  /* centroid y of triangle */
    transform: translate(-50%, -50%) scale(3);
    max-width: none;
    max-height: none;
    height: auto;
    width: auto;
  }

  /* White text positioned at top of rectangle */
  .rectangle-text {
    position: absolute;
    top: 80px; /* moved lower from 80px */
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
    z-index: 3; /* above triangle */
    color: white;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .rectangle-text h1 {
    margin: 0 0 16px 0;
    font-weight: 700;
    font-size: 48px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .rectangle-text p {
    margin: 0;
    font-weight: 500;
    font-size: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    opacity: 0.9;
  }

  /* Services container inside rectangle */
  .services-container {
    position: absolute;
    top: 250px; /* moved lower from 200px */
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 200px; /* increased from 60px to 100px */
    max-width: 1400px;
    width: 90%;
    z-index: 3; /* above triangle */
  }

  .service-item {
    text-align: center;
    padding: 0 20px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 40px auto; /* increased spacing between icons and titles */
    display: block;
    color: white;
  }

  .service-icon svg {
    width: 100%;
    height: 100%;
  }

  .service-item h3 {
    margin: 0 0 12px 0;
    font-weight: 700;
    font-size: 20px;
    color: white;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }

  .service-item p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }

  /* Text positioned on the left side of the triangle */
  .triangle-text {
    position: absolute;
    bottom: 375px; /* moved higher from 100px */
    left: 200px; /* moved more to the left from 400px */
    z-index: 3; /* above triangle */
    color: white;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .triangle-text h2 {
    margin: 0 0 16px 0;
    font-weight: 700;
    font-size: 36px; /* reduced from 48px */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center; /* center the header */
  }

  .triangle-text p {
    margin: 0;
    font-weight: 400;
    font-size: 16px; /* reduced from 18px */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    max-width: 600px; /* increased from 400px */
    text-align: center; /* center the text */
    
  }

  /* Text positioned on the right side of the triangle */
  .triangle-text-right {
    position: absolute;
    bottom: 100px; /* moved lower from 250px */
    right: 280px; /* positioned on the right side */
    z-index: 3; /* above triangle */
    color: #31393B; /* changed from white to #4B5454 */
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .triangle-text-right h2 {
    margin: 0;
    font-weight: 700; /* changed back to bold */
    font-size: 48px;
    text-shadow: none; /* removed text shadow */
  }

  /* White rectangle with services */
  .white-rect {
    width: 100%;
    height: 350px; /* reduced from 800px */
    background: white;
    position: relative;
    padding: 80px 20px;
  }

  .white-services-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 200px;
    align-items: start;
  }

  .white-service-item {
    text-align: center;
    padding: 0 20px;
  }

  .white-service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 40px auto;
    display: block;
    color: #31393B; /* changed to #4B5454 */
  }

  .white-service-icon svg {
    width: 100%;
    height: 100%;
  }

  .white-service-item h3 {
    margin: 0 0 12px 0;
    font-weight: 700;
    font-size: 20px;
    color: #31393B; /* changed to #4B5454 */
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .white-service-item p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
    color: #31393B; /* changed to #4B5454 */
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  /* Footer rectangle with gradient */
  .footer-rect {
    width: 100%;
    height: 300px;
    background: linear-gradient(90deg, #31393B 0%, #677890 100%);
    position: relative;
    padding: 60px 20px;
  }

  .footer-content {
    position: absolute;
    top: 60px; /* positioned at top instead of bottom */
    left: 50%;
    transform: translateX(-50%);
    max-width: 800px; /* further reduced to match page width */
    width: 80%; /* reduced from 90% */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    z-index: 3; /* above triangle */
  }

  .contact-section h2 {
    margin: 0 0 16px 0;
    font-weight: 700;
    font-size: 32px;
    color: white;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .contact-section p {
    margin: 0 0 24px 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }

  .contact-info p {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }

  .footer-info h3 {
    margin: 0 0 16px 0;
    font-weight: 700;
    font-size: 24px;
    color: white;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .footer-info p {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }

  /* Responsive Design - Media Queries */

  /* Tablets and smaller desktops (max-width: 1024px) */
  @media (max-width: 1024px) {
    .nav-section {
      width: 85%;
    }

    .nav-section a {
      font-size: 18px;
      padding: 28px 4px;
    }

    .intro-section {
      padding: 40px 20px;
      gap: 40px;
    }

    .intro-logo-img {
      height: 360px;
    }

    .services-container,
    .white-services-container {
      gap: 100px;
      max-width: 900px;
    }

    .triangle-text {
      left: 100px;
      max-width: 500px;
    }

    .triangle-text h2 {
      font-size: 28px;
    }

    .triangle-text p {
      font-size: 14px;
      max-width: 450px;
    }

    .triangle-text-right {
      right: 150px;
      font-size: 36px;
    }
  }

  /* Tablets (max-width: 768px) */
  @media (max-width: 768px) {
    .main-header {
      padding: 30px 15px;
    }

    .nav-section {
      width: 95%;
    }

    .nav-section ul {
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
    }

    .nav-section a {
      font-size: 16px;
      padding: 12px 8px;
    }

    .intro-section {
      grid-template-columns: 1fr;
      min-height: auto;
      padding: 30px 15px;
    }

    .intro-logo {
      margin-left: 0;
      justify-content: center;
    }

    .intro-logo-img {
      height: 280px;
    }

    .intro-text {
      max-width: 100%;
    }

    .intro-text h2 {
      font-size: 28px;
    }

    .intro-text p {
      font-size: 16px;
    }

    .gradient-rect,
    .white-rect,
    .footer-rect {
      width: 100%;
    }

    .gradient-rect {
      height: auto;
      padding: 40px 20px 600px 20px;
    }

    .rectangle-text h1 {
      font-size: 32px;
    }

    .services-container,
    .white-services-container {
      grid-template-columns: 1fr;
      gap: 40px;
      max-width: 400px;
      position: relative;
      top: auto;
      left: auto;
      transform: none;
      margin-top: 60px;
    }

    .white-rect {
      height: auto;
      padding: 40px 20px;
    }

    .triangle-text {
      position: relative;
      left: auto;
      bottom: auto;
      margin: 40px 20px;
      max-width: 100%;
    }

    .triangle-text h2 {
      font-size: 24px;
    }

    .triangle-text p {
      font-size: 14px;
      max-width: 100%;
    }

    .triangle-text-right {
      position: relative;
      right: auto;
      bottom: auto;
      text-align: center;
      margin: 20px;
    }

    .triangle-text-right h2 {
      font-size: 28px;
    }

    .footer-rect {
      height: auto;
      padding: 40px 20px;
    }

    .footer-content {
      position: relative;
      top: auto;
      left: auto;
      transform: none;
      grid-template-columns: 1fr;
      gap: 40px;
      max-width: 100%;
      width: 100%;
    }

    .contact-section h2,
    .footer-info h3 {
      font-size: 24px;
    }
  }

  /* Mobile phones (max-width: 480px) */
  @media (max-width: 480px) {
    .main-header {
      padding: 20px 10px;
    }

    .nav-section ul {
      flex-direction: column;
      gap: 5px;
    }

    .nav-section a {
      font-size: 14px;
      padding: 10px 6px;
    }

    .intro-logo-img {
      height: 200px;
    }

    .intro-text h2 {
      font-size: 24px;
    }

    .intro-text p {
      font-size: 14px;
    }

    .rectangle-text h1 {
      font-size: 24px;
    }

    .service-icon,
    .white-service-icon {
      width: 36px;
      height: 36px;
    }

    .service-item h3,
    .white-service-item h3 {
      font-size: 18px;
    }

    .service-item p,
    .white-service-item p {
      font-size: 13px;
    }

    .triangle-text h2 {
      font-size: 20px;
    }

    .triangle-text-right h2 {
      font-size: 22px;
    }

    .services-container,
    .white-services-container {
      gap: 30px;
    }

    .contact-section h2,
    .footer-info h3 {
      font-size: 20px;
    }

    .contact-section p,
    .contact-info p,
    .footer-info p {
      font-size: 14px;
    }
  }
  
  