/*
Theme Name: Bibin Devadas Portfolio
Theme URI: https://new.bibindevadas.com
Author: Bibin Devadas
Author URI: https://new.bibindevadas.com
Description: A custom WordPress theme for Bibin Devadas' portfolio.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bibindevadas-portfolio
*/

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Transparent Navbar */
.navbar {
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

.navbar-light {
    background: transparent !important;
}

.navbar-dark.scrolled {
    background: rgba(0, 0, 0, 0.9) !important;
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 10px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #f0ad4e !important;
}

.navbar-dark .btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.navbar-dark .btn-outline-light:hover {
    background-color: white;
    color: black;
}

/* Mobile/Tablet View */
@media (max-width: 991.98px) {
    /* Navbar Background for Mobile */
    /*
    .navbar {
        background-color: rgba(0, 0, 0, 0.9); /* Solid background for smaller screens */
    /*} */
    navbar {
        background-color: transparent !important;
        transition: background-color 0.3s ease;
    }

    /* Black Navbar when menu is expanded */
    .navbar.navbar-expanded {
        background-color: rgba(0, 0, 0, 0.9) !important;
    }

    /* Expanded Mobile Menu */
    .navbar-collapse.show {
        background-color: rgba(0, 0, 0, 0.9) !important; /* Solid background */
        padding: 1rem;
        position: fixed; /* Fix to prevent scrolling issues */
        top: 0;
        left: 0;
        width: 100%; /* Full-width menu */
        height: auto; /* Remove full height */
        max-height: 100vh; /* Add a max-height to prevent it from taking over */
        z-index: 1050; /* Ensure it overlays other content */
        overflow-y: auto; /* Allow scrolling if the menu is too long */
    }

    /* Menu Items in Mobile */
    .navbar-nav .nav-item {
        margin-bottom: 1rem; /* Add spacing between menu items */
    }

    .navbar-nav .nav-link {
        color: white !important; /* Ensure menu items are visible */
        text-align: center; /* Center-align text in mobile */
        padding: 1rem 0; /* Add padding for better touch usability */
        font-size: 1.2rem; /* Slightly larger font for mobile */
    }

    .navbar-nav .nav-link:hover {
        color: #f0ad4e !important; /* Highlight hover color */
    }

    /* Close Button Styles */
    
    .navbar-toggler {
        background-color: transparent !important; /* Remove background color */
        border: none; /* Remove any border around the toggle button */
    }

    .navbar-toggler-icon {
        background-color: transparent !important; /* Remove any background color */
        /*background-color: rgba(255, 255, 255, 0.8); /* Ensure toggle icon is visible */ 
    }
    
    
    /* Ensure proper visibility for the Download CV button */
    .navbar-collapse .btn {
        margin: 1rem auto;
        display: block;
        text-align: center;
    }
}

/* Adjust Menu Item Spacing in Mobile View */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem; /* Add padding inside the expanded menu */
    }
}

/* Added section ends here */

section {
    padding: 4rem 0;
}

section[id] {
    scroll-margin-top: 80px; /* Prevents navbar overlap */
}

#hero {
    background: url('https://new.bibindevadas.com/wp-content/uploads/2024/12/portfolio.png') no-repeat center center/cover;
    height: 100vh;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero .btn {
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

#hero .btn:hover {
    background-color: white;
    color: black;
}

/* General Skills Section Styling */
#skills .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center-align items */
    align-items: center; /* Align vertically */
    gap: 2rem; /* Add spacing between items */
}

#skills .col-md-4 {
    flex: 1 1 30%; /* Make each item take up 30% of the row */
    max-width: 30%; /* Ensure consistent width */
    text-align: center; /* Center-align text */
    margin-bottom: 2rem; /* Add spacing below each skill */
}

@media (max-width: 991.98px) {
    #skills .col-md-4 {
        flex: 1 1 45%; /* Adjust for smaller screens (2 per row) */
        max-width: 45%;
    }
}

@media (max-width: 576px) {
    #skills .col-md-4 {
        flex: 1 1 100%; /* Full-width for mobile view */
        max-width: 100%;
    }
}

/* Experience Section Specific Styling */
#experience .border {
    border: 1px solid #ddd; /* Match the border style with other sections */
    background-color: #fff; /* Ensure white background for items */
    transition: box-shadow 0.3s ease;
}

#experience .border:hover {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); /* Add hover shadow */
}

#experience h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

#experience h4 {
    font-size: 1rem;
    font-weight: 400;
}

#experience p.text-muted {
    font-size: 0.9rem;
    color: #6c757d; /* Bootstrap muted text color */
}

#experience p {
    font-size: 1rem;
    color: #333;
}

/* New addition in experience */
#experience .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center-align all items */
    gap: 2rem; /* Add spacing between items */
}

#experience .experience-item {
    flex: 1 1 calc(33.333% - 2rem); /* Responsive columns */
    max-width: calc(33.333% - 2rem);
}

@media (max-width: 991.98px) {
    #experience .experience-item {
        flex: 1 1 calc(50% - 2rem); /* Two items per row on tablets */
        max-width: calc(50% - 2rem);
    }
}

@media (max-width: 576px) {
    #experience .experience-item {
        flex: 1 1 100%; /* Full width for small screens */
        max-width: 100%;
    }
}


/* Default Spacing for Project Cards */

#projects .card {
    margin-bottom: 1.5rem; /* Adds space below each card */
    padding: 1rem; /* Adds inner padding to the card content */
    border: 1px solid #ddd; /* Consistent border style */
    border-radius: 5px; /* Slight rounding for better look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    display: flex; /* Flexbox layout */
    flex-direction: column; /* Stack items vertically */
    justify-content: space-between; /* Ensure even spacing between items */
    height: 100%; /* Ensure consistent card height */
    max-width: 400px; /* Optional: Set a max-width for the card */
    margin: 0 auto; /* Centers the card horizontally when flexbox is applied */
}

/* Ensure Card Content Stretches */
#projects .card-body {
    flex-grow: 1; /* Allows content to grow and fill available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Center the Button */
#projects .btn {
    border: 2px solid #ccc; /* Light gray border */
    color: #555; /* Gray text color */
    background-color: transparent; /* Transparent background */
    padding: 0.5rem 1rem; /* Adjust padding */
    font-weight: 600; /* Bold text */
    font-size: 1rem; /* Font size for readability */
    text-align: center; /* Center text inside the button */
    transition: all 0.3s ease; /* Smooth transition effect */
    align-self: center; /* Centers the button horizontally */
    margin-top: 1rem; /* Add spacing above button */
}

/* Hover Effect for Button */
#projects .btn:hover {
    color: #000; /* Black text on hover */
    border-color: #000; /* Black border on hover */
    background-color: #f0f0f0; /* Light gray background on hover */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Slight shadow on hover */
}

/* Responsive Adjustments for Mobile and Tablet */
@media (max-width: 991.98px) {
    #projects .card {
        margin-bottom: 2rem; /* Increase space for smaller screens */
    }

    #projects .card-body {
        flex-direction: column; /* Ensure proper stacking */
    }

    #projects .card-title {
        font-size: 1.2rem; /* Adjust title font size for smaller screens */
        margin-bottom: 0.5rem; /* Add space below the title */
    }

    #projects .card-text {
        font-size: 1rem; /* Adjust description font size */
        color: #666; /* Softer color for text */
    }

    #projects .btn {
        font-size: 0.9rem; /* Slightly smaller font size for smaller screens */
        padding: 0.4rem 0.8rem; /* Adjust padding */
    }
}


.btn-outline-light {
    display: inline-block; /* Ensure the button is visible */
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid white;
    color: white;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: black;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.9); /* Match your theme's color */
    color: #fff;
    padding: 2rem 0;
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

footer .social-icon {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-icon:hover {
    color: #f0ad4e; /* Match your theme's accent color */
    transform: scale(1.2); /* Slightly enlarge the icon on hover */
}

@media (max-width: 576px) {
    footer .social-icons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px; /* Distance from the bottom */
    right: 20px; /* Distance from the right */
    width: 50px;
    height: 50px;
    border: 2px solid #ccc; /* Light gray border */
    background-color: transparent; /* Transparent background */
    color: #555; /* Dark gray arrow color */
    border-radius: 50%;
    text-align: center;
    line-height: 50px; /* Centers the icon vertically */
    font-size: 20px; /* Icon size */
    z-index: 999; /* Ensure it stays above other elements */
    display: none; /* Initially hidden */
    transition: all 0.3s ease; /* Smooth transitions */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    cursor: pointer;
}

/* Button Hover Effect */
.scroll-to-top:hover {
    border-color: #f0ad4e; /* Orange border */
    color: #f0ad4e; /* Orange arrow */
    background-color: white; /* White background */
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
}

/* Fade-in and Fade-out for Visibility */
.scroll-to-top.fade-in {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

.scroll-to-top.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

/* Smaller Icon for Mobile and Tablet View */
@media (max-width: 991.98px) {
    .scroll-to-top {
        width: 40px; /* Smaller button width */
        height: 40px; /* Smaller button height */
        line-height: 40px; /* Adjust icon vertical alignment */
        font-size: 16px; /* Smaller icon size */
        bottom: 15px; /* Adjust position */
        right: 15px; /* Adjust position */
    }
}

/* For Single-Blog posts */
/* Single Post Styling */
/* Single Post Alignment */

/* New section */
.single-post .site-main {
    font-family: 'Poppins', sans-serif; /* Use your theme font */
    color: #333; /* Dark gray for body text */
    line-height: 1.8; /* Improve readability */
    font-size: 1.1rem; /* Standard font size */
    margin: 0 auto;
    max-width: 1000px; /* Center content and control width */
    padding: 20px; /* Add padding around content */
    box-sizing: border-box;
}

/* Blog Title Styling */
.single-post .entry-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 2.5rem; /* Large font size */
    line-height: 1.3; /* Better spacing for two lines */
    margin-bottom: 20px;
    color: #000; /* Black for title */
    text-align: center; /* Center align the title */
    max-width: 800px; /* Restrict width to make it wrap */
    margin-left: auto; /* Center horizontally */
    margin-right: auto;
}


/* Author Section Styling */
.single-post .post-author {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center align the content */
    justify-content: center /* Center align vertically */
    margin-bottom: 20px;
    text-align: center;
}

.single-post .post-author img {
    border-radius: 50%; /* Perfectly round image */
    width: 40px; /* Smaller size */
    height: 40px;
    object-fit: cover; /* Ensure the image fills the circular shape */
    margin-bottom: 5px; /* Space below the image */
}

/* Author Name Styling */
.single-post .post-meta {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #333; /* Dark gray */
    margin: 0; /* Remove margin */
}

/* Date Styling */
.single-post .post-date {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem; /* Slightly smaller font size */
    color: #777; /* Lighter gray */
    margin-top: 5px; /* Space above date */
}



/* Headings Styling */
.single-post h1, .single-post h2, .single-post h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* Semi-bold */
    color: #000; /* Black */
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left; /* Keep headings aligned left */
}

/* Paragraph Styling */
.single-post p {
    margin-bottom: 20px; /* Space between paragraphs */
    color: #333;
}

/* Strong Text */
.single-post strong {
    font-weight: 600;
}

/* Add spacing below lists */
.single-post ul, .single-post ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .single-post .entry-title {
        font-family: 'Poppins', sans-serif;
        font-size: 2rem;
        line-height: 1.3;
        font-weight: 700; /* Bold */
        margin-bottom: 20px;
        max-width: 90%; /* Adjust width for small screens */
    }

    .single-post .site-main {
        padding: 10px; /* Reduce padding on smaller screens */
    }


    /* Hide Featured Image on Mobile Screens */
    .single-post .wp-post-image, /* WordPress default class */
    .single-post .post-thumbnail img {
        display: none; /* Hide the image */
    }


    /* Author Section Styling */
    .single-post .post-author {
        display: flex;
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center align the content */
        justify-content: center /* Center align vertically */
        margin-bottom: 20px;
        text-align: center;
    }

    .single-post .post-author img {
        border-radius: 50%; /* Perfectly round image */
        width: 40px; /* Smaller size */
        height: 40px;
        object-fit: cover; /* Ensure the image fills the circular shape */
        margin-bottom: 5px; /* Space below the image */
    }

    /* Author Name Styling */
    .single-post .post-meta {
        font-family: 'Poppins', sans-serif;
        font-size: 1rem;
        color: #333; /* Dark gray */
        margin: 0; /* Remove margin */        
        flex-direction: column; /* Stack author image and text */
        gap: 5px; /* Reduce gap */
        text-align: center;
    }
    
    /* Date Styling */
    .single-post .post-date {
        font-family: 'Poppins', sans-serif;
        font-size: 0.9rem; /* Slightly smaller font size */
        color: #777; /* Lighter gray */
        margin-top: 5px; /* Space above date */
    }

}


/* New section ends */



/* Featured Image Styling */
.post-thumbnail img {
    width: 100%; /* Ensure image fits within the container */
    height: auto;
    margin-bottom: 20px; /* Add space below the image */
    border-radius: 10px; /* Optional: Slight rounding for clean look */
}

/* Social Share Section */
.social-share {
    margin: 30px 0;
    text-align: center;
}

.social-share a {
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

.social-share a:hover {
    color: #f0ad4e; /* Matches your theme's orange */
}
