/* Custom Styles for Neurodiverse Website */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    position: relative;
    padding-top: 0px; /* User requested 0px padding */
}

.navbar {
    padding-top: 30px; /* More padding for logo overflow */
    padding-bottom: 30px; /* More padding for logo overflow */
    transition: padding 0.3s;
    position: relative; /* Needed for z-index to work correctly with logo */
    z-index: 1000; /* Ensure navbar is above other content */
}

.logo-container {
    position: absolute; /* Change to relative for normal flow */
    top: 15px; /* Remove absolute positioning */
    left: auto; /* Remove absolute positioning */
    transform: none; /* Remove transform */
    z-index: 1001; /* Ensure logo is above navbar */
    background-color: white; /* Background for the overflowing part of the logo */
    padding: 10px; /* Padding around the logo */
    
    
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Optional shadow */
}

.navbar-brand img {
    width: 120px; /* Larger logo size */
    height: auto;
    display: block; /* Remove extra space below image */
}

section {
    padding: 60px 0;
}

.hero-section {
    /* Using the teal from the logo for the overlay */
    background: linear-gradient(rgba(0, 95, 115, 0.8), rgba(0, 95, 115, 0.8)), url('https://source.unsplash.com/random/1920x1080?abstract,calm') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    min-height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* New Primary Color Scheme (Orange from Logo) */
.btn-primary {
    background-color: #f28c28; /* Orange from logo */
    border-color: #f28c28;
}

.btn-primary:hover {
    background-color: #e67e22; /* Darker orange */
    border-color: #e67e22;
}

.text-primary {
    color: #f28c28 !important; /* Orange from logo */
}

/* Teal color for other elements */
.text-teal {
    color: #005f73 !important;
}


/* Styling for new sections */
#services .card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

#services .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#services .card-title {
    color: #005f73; /* Teal from logo */
}

#resources i {
    transition: transform 0.3s;
    color: #f28c28; /* Orange from logo */
}

#resources .col-md-6:hover i {
    transform: scale(1.2);
}


/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 30%; /* Moved to 30% from bottom */
    right: 20px;
    z-index: 99999; /* Increased z-index significantly */
    display: none; /* Hidden by default */
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    line-height: 50px; /* Center icon vertically */
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, opacity 0.3s;
}

#scroll-to-top:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {       
    .logo-container {      
        position: absolute; /* Re-apply absolute for centering */
        left: 50%;
        transform: translateX(-50%); /* Center horizontally */
        top: 0; /* Keep it at the top of the navbar */
    }
}

.collaboration-item {
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    padding: 15px;
    background-color: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    align-items: center; /* Keep items centered horizontally */
}