body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    padding-top: 80px; /* Prevents content from hiding behind the fixed navbar */
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 0 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: calc(100% - 80px);
    z-index: 1000;
    height: 80px;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo-img {
    height: 40px;
    margin-right: 15px;
}

.navbar-brand h1 {
    font-size: 1.8em;
    margin: 0;
    transition: display 0.3s ease; /* Smooth transition for hiding */
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 1em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Profile Section & Dropdown */
.profile-section {
    position: relative;
}

.profile-icon {
    cursor: pointer;
}

.profile-icon img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 2px solid #007bff;
    object-fit: cover;
    transition: width 0.3s ease, height 0.3s ease; /* Smooth transition for resizing */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 65px;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 200px;
    overflow: hidden;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f4f4f4;
}

/* Footer Styles */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px 40px;
    margin-top: 40px;
}

/* Hamburger menu button (hidden on desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* --- RESPONSIVE STYLES START HERE --- */

/* For Tablets */
@media (max-width: 992px) {
    .navbar-brand h1 {
        display: none; /* Hide the title text to save space */
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
        width: calc(100% - 40px);
    }

    /* Transform the nav links into a slide-out menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        height: 100vh;
        width: 250px;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        gap: 0;
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0; /* Slide the menu into view */
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: 15px 30px;
        display: block;
    }

    /* Show the hamburger menu icon */
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    /* Make the profile icon smaller */
    .profile-section .profile-icon img {
        height: 40px;
        width: 40px;
    }
}

/* --- AI Assistant Sticky Icon Styles --- */
#ai-assistant-icon-container {
    position: fixed; /* Makes it stick to the viewport */
    bottom: 20px;    /* Distance from the bottom of the screen */
    right: 20px;     /* Distance from the right of the screen */
    z-index: 1000;   /* Ensure it's above other content */
    display: flex;   /* For centering the image if needed, or consistent sizing */
    justify-content: center;
    align-items: center;
    /* Optional: background/padding for a circular shape */
    /* background-color: #007bff; */
    /* border-radius: 50%; */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.2); */
}

#ai-assistant-link {
    display: block; /* Ensure the link fills the container */
    cursor: pointer;
    line-height: 0; /* Remove extra space below image */
}

#ai-assistant-image {
    width: 80px;  /* Default size for the icon */
    height: auto; /* Maintain aspect ratio */
    border-radius: 50%; /* Make it circular if your image allows */
    transition: transform 0.2s ease-in-out; /* Smooth hover effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Add some depth */
}

#ai-assistant-image:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* --- Responsiveness for smaller screens --- */
@media (max-width: 768px) {
    #ai-assistant-icon-container {
        bottom: 15px;
        right: 15px;
    }
    #ai-assistant-image {
        width: 60px; /* Smaller on mobile */
    }
}

@media (max-width: 480px) {
    #ai-assistant-icon-container {
        bottom: 10px;
        right: 10px;
    }
    #ai-assistant-image {
        width: 50px; /* Even smaller on very small screens */
    }
}

/* --- General Page Styles --- */
.homepage-main {
    background-color: #fff;
}
.section-padding {
    padding: 80px 20px;
}
.bg-light {
    background-color: #f8f9fa;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}
.btn-primary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* --- Section 1: Hero --- */
#hero {
    background: linear-gradient(135deg, rgba(0, 91, 179, 0.8), rgba(0, 123, 255, 0.7)), 
                url('https://placehold.co/1920x1080/2c3e50/ffffff?text=Research+Lab') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
}
.hero-content .subtitle {
    font-size: 1.3rem;
    margin: 20px 0 30px 0;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Section 2: About --- */
#about .about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
#about .about-text h2 {
    text-align: left;
    margin-top: 0;
}
#about .about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* --- Section 3: Process --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.process-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
}
.process-card h3 {
    color: #007bff;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* --- Section 4: Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}
.portfolio-item img {
    width: 100%;
    display: block;
}
.portfolio-item h3 {
    text-align: center;
    padding: 20px;
    margin: 0;
    background: #fff;
}

/* --- Section 5: Testimonials --- */
.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
}
.testimonial-card p {
    font-size: 1.3rem;
    font-style: italic;
    color: #555;
}
.testimonial-card strong {
    margin-top: 20px;
    display: block;
    color: #007bff;
}

/* --- Section 6: Partners --- */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.partner-logos img {
    max-height: 70px;
    opacity: 0.6;
}

/* --- Section 7: Contact --- */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input, .contact-form textarea {
    padding: 15px;
    font-size: 1em;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: 'Segoe UI', sans-serif;
}
.contact-details h3 {
    color: #007bff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- AI Assistant Icon --- */
#ai-assistant-icon-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}
#ai-assistant-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}
#ai-assistant-image:hover {
    transform: scale(1.1);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr; /* Stack 2-column grids */
        gap: 50px;
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #about .about-text h2 {
        text-align: center;
    }
}
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .process-grid, .portfolio-grid {
        grid-template-columns: 1fr; /* 1 column grid */
    }
}

/* --- Add to the bottom of css/homepage.css --- */

/* Footer Container */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding-top: 60px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Sections */
.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #007bff;
}

/* Brand & Address */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.footer-logo {
    height: 35px;
    filter: brightness(0) invert(1); /* Makes logo white */
}
.site-footer address {
    font-style: normal;
    line-height: 1.8;
    color: #bdc3c7;
    font-size: 0.95rem;
}
.site-footer address i {
    width: 25px;
    color: #007bff;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: 1rem;
}
.footer-links a:hover {
    color: #007bff;
    padding-left: 8px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.social-btn:hover {
    transform: translateY(-5px);
    background-color: #007bff;
}

/* Bottom Bar */
.footer-bottom {
    background-color: #233140;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #95a5a6;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-content {
        text-align: center;
        gap: 30px;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}