/* Global Styles */
:where([class^="ri-"])::before { content: "\f3c2"; }

body { 
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* Navigation */
.nav-link { 
    position: relative; 
}

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

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

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 200px;
    z-index: 50;
}

.dropdown:hover .dropdown-content { 
    display: block; 
}

/* Cards & Animations */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.portfolio-card:hover {
    transform: translateY(-8px);
}

.portfolio-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* Process Steps */
.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #6256CA;
    transform: translateY(-50%);
}

.process-step:last-child::after {
    display: none;
}

/* Form elements */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #6256CA;
    box-shadow: 0 0 0 3px rgba(98, 86, 202, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideUp {
    animation: slideUp 0.5s ease-in-out;
}

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

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
} 

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 0px;
    background: "";
    transform: translateY(-50%);
}

.mt-2 {
     margin-top: 0; 
}

/* Search Page Styles */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-form {
    background-color: #365bd4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.search-form h1 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.search-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-height: 150px;
    margin-bottom: 15px;
}

.search-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}

.search-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4c9aff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form input[type="submit"]:hover {
    background-color: #3392ff;
}

/* Results Table Styles */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
    display: block;
}

.results-table th,
.results-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 14px;
}

.results-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.results-table tr:hover {
    background-color: #f5f5f5;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.export-button,
.save-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.export-button {
    background-color: #365bd4;
    color: white;
}

.save-button {
    background-color: #4CAF50;
    color: white;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .search-container {
        padding: 10px;
    }

    .search-form {
        padding: 15px;
    }

    .search-form h1 {
        font-size: 20px;
    }

    .search-form textarea {
        min-height: 120px;
    }

    .results-table {
        font-size: 12px;
    }

    .results-table th,
    .results-table td {
        padding: 8px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .export-button,
    .save-button {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Make table scrollable on mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust form elements for mobile */
    .search-form select,
    .search-form input[type="text"] {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Loading Dialog */
.loading-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* Message Status */
.message-status {
    margin-top: 5px;
    font-size: 12px;
}

.message-status.success {
    color: #4CAF50;
}

.message-status.error {
    color: #f44336;
}

/* WhatsApp Button */
.whatsapp-button {
    background-color: #25D366;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

/* Phone Link */
.phone-link {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
}

.phone-link:hover {
    text-decoration: underline;
}