/* General Styles */
/* fonts.css - Add this to all pages in <head> */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Base font size for rem calculations */
  --base-font-size: 16px;
  
  /* Font stacks */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 
                 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 
                 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-secondary: Arial, sans-serif;
  
  /* Colors */
  --primary-color: #F5A952;
  --text-color: #333;
  --heading-color: #2c3e50;
}

body {
  font-family: var(--font-primary);
  font-size: var(--base-font-size);
  line-height: 1.6;
  color: var(--text-color);
  padding: 0;
  margin:0;
  margin: 0;
  padding: 0;
  color: #fff;
  background-image: url('Images/background.jpg'); /* Add your background image */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Responsive typography scale */
h1, .interactive-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.4;
}

p, li, a, .form-group input, .form-group select, .form-group textarea {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.6;
}

.small-text {
  font-size: clamp(0.875rem, 2vw, 1rem);
}

@media (max-width: 480px) {
  :root {
    --base-font-size: 14px;
  }
}

@media (min-width: 1600px) {
  :root {
    --base-font-size: 18px;
  }
}



.solutions-page {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white; /* Semi-transparent overlay for better readability */

}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color:black;
}


/*Header Section*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .logo img {
    height: 100px;
  }
  
  .hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
  }
  
  nav ul li {
    position: relative;
  }
  
  nav ul li a {
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  nav ul li a:hover {
    background-color: #F5A952;
    color: whitesmoke;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: whitesmoke;
    min-width: 160px;
    z-index: 1;
  }
  
  .dropdown-content a {
    padding: 10px;
    text-align: left;
    color: black;
    text-decoration: none;
    display: block;
  }
  
  .dropdown-content a:hover {
    background-color: #F5A952;
    color: white;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  @media (max-width: 768px) {
    .hamburger {
        display: block;
        color: black;
    }
  
    nav {
        display: none;
        position: absolute;
        top: 110px;
        left: 0;
        width: 100%;
        background-color:whitesmoke;
    }
  
    nav ul {
        flex-direction: column;
    }
  
    nav ul li {
        text-align: center;
    }
  
    nav ul li a {
        padding: 15px;
    }
  
    .dropdown-content {
        position: static;
    }
  
    .dropdown:hover .dropdown-content {
        display: none;
    }
  
    .dropdown.active .dropdown-content {
        display: block;
    }
  }



/* Solution Grid */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Solution Card */
.solution-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.solution-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-card:hover .card-image img {
    transform: scale(1.1);
}

.solution-card h3 {
    font-size: 1.5rem;
    margin: 20px 15px 10px;
    color: #2c3e50;
}

.solution-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 15px 20px;
    color: #555;
}
/*Card Hover Preparation*/
.card__data{
    width: 280px;
    background-color: #F5A952;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px black;
    border-radius: 1rem;
    position:absolute;
    bottom: -2rem;
    left: 0;
    right:0 ;
    margin-inline: auto;
    opacity: 0;
    transition: opacity 1s 1s;
}

/*Card Hover Effect*/
.solution-card:hover .card__data{
    animation: show-data 1s forwards;
    opacity: 1;
    transition:opacity .1s;
}

.card__data li{
    color: black;
    font-size: 1rem;
    margin: 20px 15px 10px;
}



.solution-card:hover{
    animation:remove-overflow .01s forwards;
}

.solution-card:not(:hover){
    animation: show-overflow 2s forwards;
}

.solution-card:not(:hover) .card__data{
    animation: remove-data 1s forwards;
}


.solution-card.active {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.solution-card.active .card__data {
    opacity: 1; /* Make the card data visible */
    transition: opacity 0.3s ease; /* Smooth transition */
}

@keyframes show-data{
    50%{
        transform: translateY(-10rem);
    }
    100%{
        transform: translateY(-7rem);
    }
}

@keyframes remove-overflow{
    to{
        overflow: initial;
    }
}


@keyframes remove-data{
    0%{
        transform: translateY(-7rem);
    }
    50%{
        transform: translateY(-10rem);
    }
    0%{
        transform: translateY(0.5rem);
    }
}

@keyframes show-overflow{
    0%{
        overflow:initial;
        pointer-events: none;
    }
    50%{
        overflow: hidden;
    }
}



/* Gradient Overlay on Hover */
.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(241, 240, 240, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Footer Styles */
footer {
    background-color: #F5A952;
    color: #fff;
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-section {
    max-width: 300px;
    text-align: left;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-section p {
    margin: 5px 0;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #F5A952;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons img {
    width: 30px;
    height: 30px;
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid whitesmoke;
    padding-top: 20px;
}

/* Interactive Heading */
.interactive-heading {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
    text-align: center; /* Ensure text is centered */
    width: 100%; /* Ensure the heading takes full width */
}

.interactive-heading::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #F5A952;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.interactive-heading:hover {
    color: #F5A952;
}

.interactive-heading:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;}