/* Tailwind CSS Custom Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
    .text-shadow {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    .transition-all-300 {
        transition: all 0.3s ease;
    }
    .hover-scale {
        transition: transform 0.3s ease;
    }
    .hover-scale:hover {
        transform: scale(1.03);
    }
    .card-shadow {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    .bg-gradient-primary {
        background: linear-gradient(135deg, #0B3C5D 0%, #1D7CAE 100%);
    }
    .bg-gradient-secondary {
        background: linear-gradient(135deg, #FF6B35 0%, #FF8E61 100%);
    }
}

/* Custom Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image {
    transition: transform 0.5s ease;
}

.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #FF6B35;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #333;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #333;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #fff;
    background-color: #1D7CAE;
    text-decoration: none;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #0B3C5D 0%, #1D7CAE 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 60, 93, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8E61 100%);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Custom animation for floating elements */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1D7CAE;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0B3C5D;
}

/* Loader animation */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #FF6B35;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional Styles for All Pages */
.section-padding {
    padding: 5rem 0;
}

.card {
    transition: all 0.3s ease;
}

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

.card-image {
    overflow: hidden;
}

.card-image img {
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0B3C5D;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 1rem;
    color: #666666;
}

/* Form Styles */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0B3C5D;
    box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.2);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    color: #059669;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Filter Button Styles */
.case-filter-btn, .blog-filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.case-filter-btn.active, .blog-filter-btn.active {
    background-color: #0B3C5D;
    color: white;
}

.case-filter-btn:not(.active), .blog-filter-btn:not(.active) {
    background-color: #F5F5F5;
    color: #333333;
}

.case-filter-btn:not(.active):hover, .blog-filter-btn:not(.active):hover {
    background-color: #e5e7eb;
}

/* FAQ Styles */
.faq-question {
    width: 100%;
    flex justify-between items-center;
    p-6 text-left focus:outline-none;
}

.faq-answer {
    bg-white p-6 hidden;
}

/* Blog Sidebar Styles */
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-widget {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0B3C5D;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FF6B35;
}

.search-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #0B3C5D;
    box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.2);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #333333;
    transition: all 0.3s ease;
}

.category-list a:hover {
    color: #FF6B35;
}

.category-list span {
    background-color: #F5F5F5;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.recent-post {
    display: flex;
    margin-bottom: 1rem;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.375rem;
    margin-right: 1rem;
}

.recent-post-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.recent-post-content h4 a {
    color: #333333;
    transition: all 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: #FF6B35;
}

.recent-post-date {
    font-size: 0.75rem;
    color: #666666;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    background-color: #F5F5F5;
    color: #333333;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background-color: #0B3C5D;
    color: white;
}

/* Mobile menu animation */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .desktop-dropdown {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-dropdown {
        display: none;
    }
}
