* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.main-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
}

.navbar.navbar-dark .navbar-nav .nav-link:hover,
.navbar.navbar-dark .navbar-nav .nav-link:focus,
.navbar.navbar-dark .navbar-nav .nav-link.active {
    color: #ffcccc !important;
}

.navbar.bg-primary {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%) !important;
}

.navbar .dropdown-menu {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%);
    border: none;
    border-radius: 0.25rem;
}

.navbar .dropdown-item {
    color: #ffffff;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: #e0e0ff;
    background-color: rgba(255, 255, 255, 0.1);
}

.ad-banner-top {
    border-bottom: 1px solid #dee2e6;
}

.ad-placeholder {
    background: transparent;
    padding: 15px;
    border-radius: 5px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Search suggestions styling */
.search-suggestions {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestion-item {
    transition: background-color 0.2s ease;
    padding: 12px 16px !important;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggestion-item:hover {
    background-color: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.ad-placeholder-footer {
    background: transparent;
    padding: 20px;
    border-radius: 5px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.ad-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 5px;
    color: #999;
    font-size: 0.9rem;
}

.ad-banner-tool {
    margin: 20px auto;
    max-width: 728px;
}

.ad-banner-tool .ad-banner {
    width: 100%;
}

.hero-section {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    animation: slideUp 0.8s ease-out;
}

.hero-section h1 {
    animation: slideUp 1s ease-out 0.2s both;
}

.hero-section p {
    animation: slideUp 1s ease-out 0.4s both;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-container {
    max-width: 600px;
    margin: 30px auto;
    animation: slideUp 0.6s ease-out 0.3s both;
}

.search-container input {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-container input:focus {
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

.tools-section {
    padding: 40px 0;
    animation: fadeIn 0.6s ease-out;
}

.tools-section:nth-child(1) {
    animation-delay: 0.1s;
}

.tools-section:nth-child(2) {
    animation-delay: 0.2s;
}

.tools-section:nth-child(3) {
    animation-delay: 0.3s;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #dc2626;
    color: #333;
    animation: slideUp 0.6s ease-out;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%);
    animation: expandWidth 0.8s ease-out forwards;
}

@keyframes expandWidth {
    to {
        width: 100%;
    }
}

.tool-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: slideUp 0.5s ease-out forwards;
    cursor: pointer;
}

.tool-card.show {
    opacity: 1;
    animation: slideUp 0.5s ease-out forwards;
}

.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }
.tool-card:nth-child(n+7) { animation-delay: 0.35s; }

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.tool-card:active {
    transform: translateY(-3px) scale(0.98);
    transition: all 0.1s ease;
}

.tool-card.highlight {
    animation: pulse 0.6s ease-in-out;
    border: 2px solid #dc2626;
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.5);
}

.tool-card h5 {
    color: #dc2626;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tool-card p {
    color: #666;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 15px;
}

.tool-card .btn {
    margin-top: auto;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tool-card .btn:hover::before {
    width: 300px;
    height: 300px;
}

.tool-card .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.tool-page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.tool-box {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.tool-box h2 {
    color: #dc2626;
    margin-bottom: 30px;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #dc2626;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.result-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    min-height: 100px;
}

.result-box h4 {
    color: #dc2626;
    margin-bottom: 15px;
}

.ad-sidebar {
    margin-top: 40px;
}

.ad-sidebar .ad-placeholder {
    margin-bottom: 20px;
}

.page-content {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 40px auto;
    max-width: 900px;
}

.page-content h1 {
    color: #dc2626;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.page-content h2 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.page-content h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.page-content p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .tool-card {
        margin-bottom: 20px;
    }
    
    .tool-box {
        padding: 25px;
    }
    
    .page-content {
        padding: 25px;
    }
    
    .tool-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}


