/* style.css */

/* Color Palette */
:root {
    --primary-light-blue: #ADD8E6;
    --primary-gold: #FFD700;
    --primary-green: #32CD32;
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --tooltip-bg: rgba(220, 39, 39, 0.8);
    --tooltip-text: var(--primary-white);
}

/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--primary-black);
    background-color: var(--primary-white);
    scroll-behavior: smooth;
}

/* Header Styles */
.header {
    background-color: var(--primary-black);
    color: var(--primary-light-blue);
    padding: 20px 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-green);
    border-left: 5px solid var(--primary-gold);
    border-top: 8px solid var(--primary-gold);
    border-right: 5px solid var(--primary-gold);
    margin: 10px;
}
.hero-section {
    background: url('/static/images/blog1.jpg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
  }
  
  .hero-text {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    color: var(--primary-light-blue);
  }

  .cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-light-blue);
    color: var(--primary-black);
    text-decoration: none;
    margin-top: 10px;
    border-radius: 5px;
    font-weight: bolder;
  }
  .cta-btn:hover {
    background-color: var(--primary-green);
    color: var(--primary-black);
  }
  
/* Main Content Styles */
main {
    padding: 20px;
}

/* Search bar styling */
.search-container {
    margin: 20px 20px;
    text-align: center;
}

#searchBar {
    width: 50%;
    padding: 10px;
    border: 1px solid var(--primary-gold);
    border-radius: 4px;
    font-size: 16px;
}
.search-results {
    margin-top: 10px;
}

.searchbtn {
    background-color: var(--primary-green);
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    color: var(--primary-black);
    font-size: 0.8rem;
    border-radius: 8px;
    margin-left: 10px;
    margin-bottom: 5px;
    margin-top: 5px;
    border-bottom: 3px solid var(--primary-green);
    border-right: 0px solid var(--primary-green);
    border-left: 5px solid var(--primary-green);
    border-top: 3px solid var(--primary-green);
}
.searchbtn:hover {
    background-color: var(--primary-gold);
}

.result-item {
    padding: 5px;
    background-color: var(--primary-light-blue);
    border: 1px solid var(--primary-gold);
    border-radius: 5px; /* Rounded corners */
    cursor: pointer;
    margin-bottom: 16px;
    margin-left: 180Px;
    width: fit-content;
    margin-top: -15px;
    
}

.result-item:hover {
    background-color: var(--primary-gold);
}

.no-results {
    padding: 5px;
    background-color: var(--primary-light-blue);
    border: 1px solid var(--primary-gold);
    border-radius: 3px; /* Rounded corners */
    color: #f50e0e;
    margin-bottom: 5px;
    margin-left: 180Px;
    width: 35%;
    margin-top: -15px;
    
}


/* AI/ML Projects Section */
.ai-ml-projects-section {
    padding: 0px 0;
    background-color: var(--primary-white);
    width: 100%;
}

.ai-ml-projects-section h2 {
    text-align: center;
    color: var(--primary-light-blue);
    background-color: var(--primary-black);
    font-size: 1.5rem;
    margin-bottom: 1px;
    margin-top: 20px;
    border: 1px solid var(--primary-gold); /* Adding a subtle border for distinction */
    border-radius: 5px; /* Rounded corners */
    
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap; /* Enable wrapping */
    
}


.project-category {
    background-color: var(--primary-light-blue);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--primary-gold);
    margin-bottom: 30px;
}

.project-category h3 {
    color: var(--primary-black);
    margin-bottom: 10px;
    font-size: 1.8rem;
    text-align: center;
}

.project-category ul {
    list-style-type: none;
    padding: 0;
}



/* Models Deployed Section */
.project-category ul li {
    font-size: 1.1rem;
    margin-bottom: 15px; /* Increased space between models */
    padding: 15px; /* Added padding for better readability */
    background-color: var(--primary-light-blue); /* Matching brand colors */
    border-radius: 8px; /* Rounded corners */
    border: 2px solid var(--primary-gold); /* Adding a subtle border for distinction */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Added slight shadow for a card-like effect */
    align-items: center;
    
}

/* Hover Effect for Models Deployed */
.project-category ul li:hover {
    background-color: var(--primary-gold); /* Change background on hover */
    color: var(--primary-black); /* Ensure text contrast */
    transform: scale(1.03); /* Slight scaling effect on hover */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Smooth transition */
}



/* Filter and Sort Controls */
.filter-sort-controls {
    text-align: center;
    margin-bottom: 20px;
}

.filter-btn {
    background-color:  var(--primary-light-blue);
    color: var(--primary-black);
    padding: 7px 5px;
    margin: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1.5px solid var(--primary-gold); /* Adding a subtle border for distinction */
    border-radius: 15px; /* Rounded corners */
    font-size: medium;
    padding-left: 25Px;
    padding-right: 20px;
   
 
    
}

.filter-btn:hover {
    background-color: var(--primary-gold);
    color: var(--primary-black);
}

/* Active class for selected filter button */
.filter-btn.active {
    background-color: var(--primary-gold);
    color: var(--primary-black);
    font-weight: bold; /* Emphasize active button */
    border: 2px solid var(--primary-light-blue); /* Make the active button more visible */
}


.sortbtn {
    padding: 6.5px;
    margin-left: 5px;
    margin-top: 3px;
    border: 2px solid var(--primary-black);
    background-color: var(--primary-light-blue);
    color: var(--primary-black);
    cursor: pointer;
    border: 1px solid var(--primary-gold); /* Adding a subtle border for distinction */
    border-radius: 15px; /* Rounded corners */    
}
.sortbtn:hover {
    background-color: var(--primary-gold);
}


/* Collapsible Section Styles */
.collapsible {
    background-color: var(--primary-green);
    color: var(--primary-black);
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: center;
    outline: none;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
    border: 2px solid var(--primary-gold); /* Adding a subtle border for distinction */
    border-radius: 8px; /* Rounded corners */
}

.collapsible:hover {
    background-color: var(--primary-gold);
    transform: scale(1.03); /* Slight scaling effect on hover */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Smooth transition */
}

.content {
    padding: 0 0px;
    display: none; /* Hidden by default */
    overflow: hidden;
    background-color: var(--primary-gold);
    border-radius: 8px; /* Rounded corners */
}

.content ul {
    margin: 20px 0;
}

.content canvas {
    margin: 20px auto;
}

/* Project Details */
.project-details {
    display: none;
    margin-top: 10px;
    background-color: var(--primary-light-blue);
    padding: 0px;
    border-radius: 8px;
    font-size: 0.9rem;
    
}

/* Toggle Button */
.toggle-btn {
    background-color: var(--primary-gold);
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    color: var(--primary-black);
    font-size: 0.8rem;
    border-radius: 5px;
    margin-left: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-bottom: 3px solid var(--primary-green);
    border-right: 0px solid var(--primary-green);
    border-left: 5px solid var(--primary-green);
    border-top: 3px solid var(--primary-green);
}

.toggle-btn:hover {
    background-color: var(--primary-light-blue);
}

/* Toggle Button */
.download-btn {
    background-color: var(--primary-gold);
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    color: var(--primary-black);
    font-size: 0.8rem;
    border-radius: 5px;
    margin-left: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-bottom: 3px solid var(--primary-green);
    border-right: 0px solid var(--primary-green);
    border-left: 5px solid var(--primary-green);
    border-top: 3px solid var(--primary-green);
}
.download-btn:hover {
    background-color: var(--primary-light-blue);
}

/* Active Class for Showing Details */
.project-details.active {
    display: block;
    width: auto;
}


/* Progress Bar Styles */
.progress-bar-container {
    width: 100%;
    background-color: var(--primary-white);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    margin-bottom: 5px;
    margin-top: 5px;
}

.progress-bar {
    height: 20px;
    width: 0;
    background-color: var(--primary-green);
    border-radius: 25px;
    transition: width 1s ease-in-out;
    position: relative;
}

.progress-bar[data-progress="100%"] {
    background-color: var(--primary-gold); /* Gold for 100% progress */
}

.progress-percentage {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--primary-black);
}

/* Tooltip Styles */
.tooltip {
    display: none;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--tooltip-bg);
    color: var(--tooltip-text);
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 1;
}

/* Show tooltip on hover */
.progress-bar:hover .tooltip {
    display: block;
}

/* Progress Bar Animation */
@keyframes progressAnimation {
    from { width: 0; }
    to { width: var(--progress-width); }
}


/* Competition Board Performance */
.competition-performance {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.competition-board {
    background-color: var(--primary-gold);
    color: var(--primary-black);
    padding: 15px;
    border-radius: 8px;
    width: 200px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.competition-board h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.performance-percentage {
    font-weight: bold;
    color: var(--primary-green);
}

/* Competition Chart Styles */
#competitionChart {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}



/* Container styling */
.service-request-form {
    background-color: var(--primary-light-blue); /* Light background for readability */
    padding: 20px 0px;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--primary-gold);
    font-family: Arial, sans-serif;
    border-left: 5px solid var(--primary-green); /* Green border for emphasis */
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 15px;
}

/* Form Heading */
.service-request-form h2 {
    color: var(--primary-black); /* Light blue heading */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Labels */
.service-request-form label {
    color: var(--primary-black); /* Black for text readability */
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    padding: 8px;
    margin-left: 15px;
    margin-right: 15px;
    
}

/* Input fields */
.service-request-form input[type="text"],
.service-request-form input[type="email"],
.service-request-form input[type="number"],
.service-request-form select,
.service-request-form textarea {
    width: 88%;
    padding: 8px;
    margin: 0px 0;
    border: 1px solid var(--primary-gold); /* Light border for fields */
    border-radius: 8px;
    background-color: var(--primary-green);
    font-size: 16px;
    color: var(--primary-black);
    transition: border-color 0.3s ease;
    margin-left: 15px;
    margin-right: 15px;
}

/* On focus */
.service-request-form input[type="text"]:focus,
.service-request-form input[type="email"]:focus,
.service-request-form input[type="number"],
.service-request-form select:focus,
.service-request-form textarea:focus {
    border-color: var(--primary-gold); /* Gold when focused */
    outline: none;
}
/* Container styling */
.serviceSuggestion {
    
    margin-left: 20px;
}


/* Submit Button */
.submit-btn {
    background-color: var(--primary-green); 
    color: var(--primary-gold);
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 60%;
    transition: background-color 0.3s ease;
    font-weight: bold;
    margin-top: 15px;
    margin-left: 20%;
    margin-right: 20px;
    
}

/* Hover effect for button */
.submit-btn:hover {
    background-color: var(--primary-gold);
    transform: scale(1.02); /* Slightly enlarges the button */
    color: var(--primary-light-blue);
}


/* Style for textarea */
.service-request-form textarea {
    resize: vertical;
}

/* Modal container (hidden by default) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.4); /* Black background with transparency */
}

/* Modal content */
.modal-content {
    background-color: var(--primary-gold); /* Gold */
    color: var(--primary-white); /* White text */
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    
}





/* Spacing for model information (Price, Downloads, Access UI) */
.model-info {
    margin: 5px 0;
    font-size: 1rem;
    color: var(--primary-black);
 
    margin-top: 10px;
    font-weight: bold;
    
}

/* Styling for the access UI link */
.model-info a {
    color:#007bff;
    text-decoration: underline;
    font-weight: bold;
   
}

.model-info a:hover {
    color: var(--primary-white);
}

/* Additional spacing between elements within the model list */
.model {
    margin-bottom: 30px;
    padding: 15px;
    background-color: var(--primary-light-blue);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.model .project-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.model p {
    margin: 10px 0;
}

/* Initial state for the collapsible section - hidden */
#modelsContent {
    display: none; /* This will hide the content initially */
}

/* Ensure that all models are hidden initially */
#modelsList li.model {
    display: none; /* Models will be hidden unless a sort is applied */
}


/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: var(--primary-black);
    text-decoration: none;
    cursor: pointer;
}


/* Footer Styles */
.footer {
    background-color: var(--primary-black);
    color: var(--primary-light-blue);
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid var(--primary-light-blue);
    border-bottom: 3px solid var(--primary-light-blue);
}

.footer-logo {
    height: 50px;
    margin-bottom: 5px;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: var(--primary-light-blue);
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-gold);
    transform: scale(1.2);
}

.social-icons img {
    width: 17px;
    height: 17px;
    transition: transform 0.3s ease;
    margin-left: 0px;
    margin-right: 80px;
    margin-bottom: 15px;
    margin-top: 10px;
}

.social-icons img:hover {
    transform: scale(1.1);
    background-color: var(--primary-light-blue);
}


/* Responsive Adjustments */
/* Mobile view adjustments */
@media (max-width: 768px) {
    .header {
        padding: 15px 0;
        margin: 5px;
    }

    /* Adjust main padding */
    main {
        padding: 10px;
    }

    /* Make the search bar full width for mobile */
    #searchBar {
        width: 90%;
        font-size: 14px;
        padding: 8px;
    }
    .searchbtn {
        
        margin-bottom: -20px;
        
    }
    .result-item {
       
        margin-left: 10%;
        margin-top: -10px;
        
        margin-bottom: 12Px;
    
    }
    .no-results {
       
        margin-left: 10%;
        width: 80%;
        margin-top: -10px;
    
    }

    /* Projects Container: Ensure proper wrapping */
    .projects-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        flex-wrap: wrap; /* Enable wrapping */
    }

    /* Ensure collapsible sections fit well */
    .collapsible {
        font-size: 1.2rem;
        padding: 10px;
    }

    .content {
        padding: 0 10px;
    }

    /* Resize buttons for better touch experience */
    .filter-btn  {
       
        font-size: 13px;
        padding: 8px 4px;
        border-radius: 8px; /* Rounded corners */
        margin-left: 4px;
        margin-right: 8px;  
      
    }
    /* Active class for selected filter button */
    .filter-btn.active {
        font-size: 13px;
        font-weight: bold; /* Emphasize active button */
        border: 2px solid var(--primary-light-blue); /* Make the active button more visible */
    }
    
    .sortbtn {
        padding: 4px;
        margin-left: 3px;
        margin-right: -7px;
        padding-left: 3px;
         
    }
   
    /* Adjust toggle buttons for better fit */
    .toggle-btn.spacing-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .submit-btn {
       
        margin-top: 15px;
        margin-left: 20%;
        margin-right: 20px;
        
    }
    /* Input fields */
.service-request-form input[type="text"],
.service-request-form input[type="email"],
.service-request-form input[type="number"],
.service-request-form select,
.service-request-form textarea {
    width: 88%;
    
}

    /* Ensure project cards fit on mobile */
    .project-category {
        padding: 0px;
        width: 100%;
    }

    .project-category h3 {
        font-size: 1.5rem;
    }

    .project-category ul li {
        font-size: 1rem;
    }

    /* Ensure project-details fit within mobile view */
    .project-details {
        padding: 0px;
        font-size: 0.9rem;
        width: 200%;
    }


    /* Footer adjustments */
    .footer {
        padding: 10px 0;
        font-size: 0.8rem;
    }

    .social-icons a {
        font-size: 1.2rem;
    }

    .competition-performance {
        flex-direction: column;
        align-items: center;
    }

    .competition-board {
        width: 100%;
    }

    .progress-bar-container {
        width: 100%;
        margin-top: 10px;
        
    }

    .ai-ml-projects-section {
        padding: 0px 0;
    }

    .ai-ml-projects-section h2 {
        margin-top: 10px;
        font-size: 1.5rem;
       
    }

    

    .competition-board h4 {
        font-size: 1.1rem;
    }

    .service-request-form {
        padding: 15px;
    }

    /* Adjust model-info for smaller screens */
    .model-info {
        font-size: 0.9rem;
        width: auto;
    }

    .model-info a {
        font-size: 0.9rem;
        width: auto;
    }

    /* Adjust progress-percentage positioning */
    .progress-percentage {
        font-size: 0.8rem;
        line-height: 20px;
    }
    #modelsList li.model {
        width: 100%;
        box-sizing: border-box;
    }

}

@media (max-width: 480px) {
    /* Further adjustment for small mobile screens */
    .project-title {
        font-size: 1rem;
    }

    .toggle-btn.spacing-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .progress-bar-container {
        height: 15px;
        
    }

    .progress-percentage {
        font-size: 0.7rem;
        line-height: 15px;
        
       
    }
    /* Ensure project cards fit on mobile */
    .project-category {
        padding: 0px;
        width: 100%;
        
    }

    .project-category h3 {
        font-size: 1.5rem;
    }

    .project-category ul li {
        font-size: 1rem;
    }


    .project-details {
        padding: 0px;
        font-size: 0.85rem;
        width: auto;
    }


    .model-info {
        font-size: 0.9rem;
        width: auto;
    }

    .model-info a {
        font-size: 0.85rem;
        width: auto;
    }
    #modelsList li.model {
        width: 100%;
        box-sizing: border-box;
    }
}