/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body and Page Background */
body {
    background: #f8f4ff !important;
    font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}






/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* Full screen height */
  overflow: hidden;
}

/* Hero Video Styling */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video covers the entire hero section */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

/* White Gradient Overlay */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
  z-index: 1;
  pointer-events: none;
}

/* Hero Text Styling */
.hero-text {
  position: absolute;
  top: 80%;
  left: 5%;
  transform: translateY(-50%);
  text-align: left;
  color: #2e2d88;
  opacity: 0;
  transition: opacity 1s ease 2s;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: slideIn 1s ease-out;
}

/* Hero Text Fade In */
@keyframes slideIn {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-text.visible {
  opacity: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .hero {
    height: 80vh; /* Adjust hero height for smaller screens */
  }

  .hero-text {
    left: 10%;
    width: 80%; /* Keep text from touching edges */
  }

  .hero-text h1 {
    font-size: 2.5rem; /* Make text smaller for mobile */
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 70vh;
  }

  .hero-text {
    left: 5%;
    width: 90%;
  }

  .hero-text h1 {
    font-size: 2rem; /* Smaller text for very small screens */
  }
}



/* === Section Wrapper === */
.what-we-do {
  background-color: #f8f4ff;
  padding: 50px 5%;
  margin-top:3rem;
}

/* === Flex Container === */
.container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.left-side,
.right-side {
  width: 100%;
}

/* === Header (renamed & enforced black color) === */
.section-title {
  font-size: 3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 650;
  color: #000 !important; /* force black */
  margin-bottom: 4px; /* extra tight spacing */
  text-align: left;
}

/* === Button === */
.more-btn {
  font-size: 1rem;
  color: #333;
  border: 2px solid #2e2d88;
  padding: 10px 22px;
  border-radius: 30px;
  background-color: transparent;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
  margin-top: 0;
}

/* Hover Fill Effect */
.more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #2e2d88;
  z-index: -1;
  transition: width 0.3s ease;
}

.more-btn:hover {
  color: white;
}

.more-btn:hover::before {
  width: 100%;
}

/* === Paragraph === */
.paragraph {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  margin: 0;
}

/* === Desktop Layout === */
@media (min-width: 768px) {
  .container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5%;
  }

  .left-side,
  .right-side {
    width: 47%;
  }

  .section-title {
    font-size: 3.2rem;
  }

  .more-btn {
    font-size: 1.1rem;
    padding: 12px 26px;
  }

  .paragraph {
    font-size: 1.2rem;
    line-height: 1.8;
  }
}

@media (min-width: 1200px) {
  .paragraph {
    font-size: 1.3rem;
    line-height: 1.9;
  }
}



/* Solutions Section - Redesigned */
.solutions-section {
  width: 100%;
  padding: 80px 0;
  background: #f8f4ff;
  text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.solutions-container {
  width: 90%;
  margin: 0 auto;
}

.solutions-section h2 {
  font-size: 2.5rem;
  color: #082a5a;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.solutions-section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #2E368F;
  border-radius: 2px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* Card Design - Fixed */
.solution-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 420px;
  display: flex;
  flex-direction: column;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-badge {
  align-self: flex-start;
  background: #e3e8ff;
  color: #2E368F;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.solution-title {
  font-size: 1.5rem;
  color: #082a5a;
  margin-bottom: 15px;
  line-height: 1.3;
}

.solution-description {
  color: #5a6a85;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #2E368F;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-icon {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

/* Hover Effects */
.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.solution-card:hover .card-image img {
  transform: scale(1.05);
}

.solution-card:hover .explore-btn {
  background: #082a5a;
}

.solution-card:hover .btn-icon {
  transform: translateX(3px);
}

/* Responsive Fixes */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .solutions-section {
    padding: 60px 0;
  }

  .solutions-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  .solution-card {
    height: 400px;
  }

  .card-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .solutions-section h2 {
    font-size: 2rem;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }

  .solution-title {
    font-size: 1.4rem;
  }

  .explore-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}


/* Updated Projects Section with Improved Title Spacing */
.latest-projects {
  background: #2e2d88;
  color: #fff;
  padding: 60px 5%;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  margin-top: 3rem;
}

.header {
  font-size: 3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: #fff;
  text-align: left;
  margin-bottom: 40px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card .image {
  background-size: cover;
  background-position: center;
  height: 350px;
  width: 100%;
  transition: transform 0.3s ease;
  border-radius: 15px;
  margin-bottom: 0; /* Removed margin from image */
}

/* New container for better spacing control */
.project-content-wrapper {
  padding: 20px 15px 15px; /* Top, sides, bottom padding */
  margin-top: -15px; /* Pull up slightly to overlap with image */
  position: relative;
  z-index: 2;
  border-radius: 0 0 15px 15px;
}

.project-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-align: left;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  position: relative;
}

/* Hover effects */
.project-card:hover .image {
  transform: scale(1.02);
}

/* Discover More Button Styles */
.all-projects-btn {
  border: 2px solid white;
  background-color: transparent;
  color: white;
  padding: 15px 40px;
  font-size: 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 40px auto 0;
  display: block;
  width: fit-content;
}

.all-projects-btn:hover {
  background-color: white;
  color: #2e2d88;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-card .image {
    height: 200px;
  }

  .project-content-wrapper {
    padding: 15px 10px 10px;
  }

  .header {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .projects-container {
    grid-template-columns: 1fr;
  }

  .header {
    font-size: 2rem;
  }

  .all-projects-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

/* Popup Styles */
.projects-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #1e1e1e;
  width: 90%;
  max-width: 1200px;
  padding: 30px;
  color: white;
  position: relative;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 48px;
  cursor: pointer;
  color: black;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #ff4d4d;
}

.popup-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

.popup-description {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #ccc;
}

.popup-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.popup-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.popup-image:hover {
  transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-lightbox-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 48px;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-lightbox-btn:hover {
  color: #ff4d4d;
}

/* Updated Lightbox Navigation Styles */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  box-sizing: border-box;
  z-index: 1002;
}

.lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.8);
  color: #2e2d88;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin: 0 20px;
}

.lightbox-nav-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.lightbox-nav-btn.prev {
  left: 0;
}

.lightbox-nav-btn.next {
  right: 0;
}

/* Make the lightbox image slightly smaller to accommodate arrows */
.lightbox-image {
  max-width: 85%;
  max-height: 85%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


/* Our Partners Section */
.our-partners {
  width: 90%;
  margin: 50px auto;
  text-align: center;
}

.partners-header {
  font-size: 3.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
}

.partners-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping if screen size is smaller */
}

.partner {
  width: 18%; /* Adjust width for responsiveness */
  text-align: center;
}

.partner-logo {
  width: 100%;
  height: auto;
  max-width: 150px; /* Adjust logo size */
}

.partner-name {
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  margin-top: 10px;
}

/* Add responsiveness for mobile */
@media (max-width: 768px) {
  .partners-container {
    flex-direction: column;
    align-items: center;
  }

  .partner {
    width: 60%;
    margin-bottom: 20px;
  }
}





/* Latest News Section */
.latest-news {
    width: 90%;
    margin: 4rem auto;
    position: relative;
  font-family: 'Montserrat', sans-serif;
    text-align: center; /* Center text for the header */
}

.news-headings {
    margin-bottom: 3rem;
    font-size: 2.1rem;
}

.centered-header {
    font-size: 2.5rem; /* Larger font size for the header */
    margin-bottom: 1rem; /* Space below the header */
}

.subheading {
    font-size: 1.8rem;
    color: #666;
    line-height: 1.6;
    max-width: 80%; /* Adjusted width for better readability */
    margin: 0 auto; /* Center the subheading */
}

.more-news {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 2px solid #2E368F;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 1.8rem;
    margin-top: 2rem; /* Space above the button */
}

.more-news:hover {
    background: #2E368F;
    color: white;
}

/* Button Container */
.button-container {
    text-align: center; /* Center the button */
    margin-top: -1rem; /* Space above the button */
}

/* Cards Section */
.cards-section {
    width: 100%;
    margin: 0 auto;
    padding: 50px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* Individual Card */
.card {
    width: calc(33.33% - 15px);
    height: 430px;
    border-radius: 10px;
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    box-sizing: border-box;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

/* News Date */
.card .news-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1; /* Ensure text is above the image */
}

/* Card Title */
.card .card-title {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.3;
    max-width: 80%;
    margin: 10px 0;
    z-index: 1; /* Ensure text is above the image */
}

/* Card Description */
.card .card-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 85%;
    line-height: 1.5;
    z-index: 1; /* Ensure text is above the image */
}

/* Circular Image - Adjusted Size and Position */
.circle-image {
    width: 300px; /* Reduced size */
    height: 300px; /* Reduced size */
    background-color: white;
    border-radius: 50%;
    position: absolute;
    bottom: -100px; /* Adjusted position */
    right: -50px; /* Adjusted position */
    overflow: hidden;
    transition: transform 0.3s ease;
    z-index: 0; /* Ensure image is below the text */
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    transition: transform 0.4s ease-in-out;
}

.card:hover .circle-image img {
    transform: scale(1.1) rotate(5deg);
}

/* Unique Background Colors for Each Card */
.card:nth-child(1) {
    background-color: #2e2d88;
}

.card:nth-child(2) {
    background-color: #bd2024;
}

.card:nth-child(3) {
    background-color: #030630;
}

/* Responsive Design Adjustments */
@media (max-width: 1024px) {
    .card {
        width: calc(50% - 10px);
        height: 500px;
    }

    .circle-image {
        width: 250px;
        height: 250px;
        bottom: -80px;
        right: -30px;
    }

    .card .news-text {
        font-size: 1.1rem;
    }

    .card .card-title {
        font-size: 1.6rem;
    }

    .card .card-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .cards-section {
        justify-content: center;
    }

    .card {
        width: 90%;
        height: 450px;
    }

    .circle-image {
        width: 200px;
        height: 200px;
        bottom: -60px;
        right: -20px;
    }

    .card .news-text {
        font-size: 1rem;
    }

    .card .card-title {
        font-size: 1.4rem;
    }

    .card .card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cards-section {
        gap: 15px;
    }

    .card {
        width: 100%;
        height: 400px;
    }

    .circle-image {
        width: 150px;
        height: 150px;
        bottom: -40px;
        right: -10px;
    }

    .card .news-text {
        font-size: 0.9rem;
    }

    .card .card-title {
        font-size: 1.2rem;
    }

    .card .card-description {
        font-size: 0.85rem;
    }
}


.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.popup.show {
    display: flex;
}

.popup-content {
    background: #ffffff;
    color: #000000; /* Ensure text is visible */
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    line-height: 1.6;
}

.popup-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111;
}

.popup-content img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.popup-content p,
.popup-content ul {
    margin-bottom: 1rem;
}

.popup-content ul {
    padding-left: 1.25rem;
    list-style-type: disc;
}

.popup-content a {
    color: #007BFF;
    text-decoration: underline;
    word-break: break-word;
}

.popup-content a:hover {
    color: #0056b3;
}

.close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
