/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 8px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 1rem;
}

.card-header h5 {
    font-weight: 600;
    margin: 0;
}

.card-header i {
    margin-right: 8px;
}

.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Tool Category Colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

/* List Group Customization */
.list-group-item {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    border-left-color: var(--primary-color);
    background-color: #f8f9fa;
    padding-left: 1.5rem;
}
.container1 {
    padding: 0 1rem;
}
/* Container Spacing */
.container {
    padding: 0 1rem;
}

/* Card Header Icons */
.card-header i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Footer Links */
footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    color: white;
}

/* Responsive Grid */
@media (max-width: 576px) {
    .col-md-4 {
        padding: 0 0.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.button {
    display: inline-block;
    padding: 8px 20px;
    margin: 10px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    transition: all 0.3s;
    cursor: pointer;
}

.button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.scrolling-text-container{
    display:flex;
    align-items:center;
    background:#ffffff;
    margin-top:-35px;
    position:relative;
}
.scrolling-text-container span{
    position:relative;
    display:inline-block;
    flex-shrink: 0;
    padding: 8px 20px;
    background: #f00;
    color: #fff;
    overflow: hidden;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
}     
/* Search enhancements */
.search-container {
    max-width: 700px;
    margin: 0 auto 30px;
}
.search-box {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.search-box input {
    border: none;
    padding: 12px 20px;
}
.search-box button {
    padding: 0 20px;
}
.search-box .btn-outline-secondary {
    border-left: 1px solid #dee2e6;
    border-right: none;
}
.button {
    display: inline-block;
    padding: 8px 20px;
    margin: 10px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    transition: all 0.3s;
    cursor: pointer;
}

.button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.scrolling-text-container {
    display:flex;
    align-items:center;
    background:#ffffff;
    margin-top:-35px;
    position:relative;
}
.scrolling-text-container span {
    position:relative;
    display:inline-block;
    flex-shrink: 0;
    padding: 8px 20px;
    background: #f00;
    color: #fff;
    overflow: hidden;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
}
.tool-card {
    transition: transform 0.2s;
}
.tool-card:hover {
    transform: translateY(-5px);
}
.tool-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Offcanvas Navigation Styles */
.offcanvas-body .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Use a light black for subtle gray */
    padding-top: 8px;
    padding-bottom: 8px;
}

.offcanvas-body .navbar-nav .nav-item:last-child {
    border-bottom: none; /* Remove border from the last item */
}

.offcanvas-body .nav-link {
    color: #000; /* Set default text color to black */
}

.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link:focus {
    color: var(--primary-color); /* Set hover/focus text color to the primary blue */
}

/* Offcanvas Social Icons Styles */
.offcanvas-body .d-flex.justify-content-around a {
    color: #000; /* Set default text color to black */
}

.offcanvas-body .d-flex.justify-content-around a:hover {
    color: var(--primary-color); /* Set hover text color to the primary blue */
}

/* Offcanvas Header Styles */
.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between title area and close button */
    width: 100%; /* Ensure the header takes full width */
}

.offcanvas-header .btn-close {
    /* The justify-content: space-between in the header will push this to the right */
    margin-left: auto; /* Ensure it's pushed right, can sometimes help with flex */
}

/* Search Input Area Styles */
#searchArea {
    flex-grow: 1; /* Allow the search area to take up available space */
    margin-left: 15px; /* Add some space between search icon and input */
}

#searchArea input {
    width: 100%; /* Make the input fill the container */
    padding: 8px 12px; /* Adjust padding */
    border: 1px solid #ccc; /* Add a border */
    border-radius: 4px; /* Add rounded corners */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.btn-outline-light.text-dark:hover {
    background-color: #0d6efd;
    border-color: #fd0d19;
    color: #fff !important; /* Ensure text color is white on hover */
}

