:root {
    /* Color Palette */
    --primary-color: #4a90e2; /* Light blue */
    --primary-color-hover: #3a80d2;
    --secondary-color: #f5f7fa; /* Light gray */
    --text-color: #212529;
    --text-muted: #6c757d;
    --accent-color: #198754; /* Success green */
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --border-color: #dee2e6;

    /* Animation Durations */
    --transition-fast: 0.15s;
    --transition-medium: 0.3s;
    --transition-slow: 0.5s;
}

/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-medium) ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
    flex: 1;
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Navbar Link Styling */
.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #007bff;
}

/* Navbar Brand Styling */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.navbar-brand i {
    color: #007bff; /* Icon color */
}

/* Navbar Toggler Icon */
.navbar-toggler-icon {
    background-color: #007bff; /* Custom color for toggler icon */
}

/* Active Link Style */
.navbar-light .navbar-nav .nav-link.active {
    color: #007bff !important;
    font-weight: 600;
}

/* Dropdown Menu Item Hover */
.dropdown-menu .dropdown-item:hover {
    background-color: #f1f1f1;
    color: #007bff;
}

/* Card Styling */
.card {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium) ease;
    overflow: hidden;
    background-color: var(--card-bg);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 1.5rem;
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Button Styles */
.btn {
    transition: all var(--transition-medium) ease;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6fa8dc 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-weight: 300;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Tool Cards */
.tool-card {
    height: 100%;
    transition: all var(--transition-medium) ease;
    border: none;
    background-color: var(--card-bg);
}

.tool-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 1.25rem;
    transition: all var(--transition-medium) ease;
    background-color: var(--secondary-color);
}

.tool-card:hover .icon-box {
    transform: scale(1.1);
}

/* Feature Icons */
.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* About Section */
.about-img {
    border-radius: 12px;
    overflow: hidden;
}

/* Toast container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}
