/* Mahtab.in - External CSS File */

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #1e40af 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Scale Effect */
.hover-scale {
    transition: transform 0.3s ease-out;
}
.hover-scale:hover {
    transform: scale(1.03);
}

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* Cursor Pointer */
.cursor-pointer {
    cursor: pointer;
}

/* Search Styles */
.search-container {
    position: relative;
    width: 240px;
}
.search-input {
    width: 100%;
    padding: 8px 12px 8px 40px;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}
.search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s;
}
.search-result-item:hover {
    background-color: #f9fafb;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-highlight {
    background-color: #dbeafe;
    font-weight: bold;
}

/* Mobile Search Styles */
.mobile-search-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.mobile-search-container.active {
    transform: translateY(0);
}
.mobile-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.mobile-search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    outline: none;
    font-size: 1rem;
    margin-bottom: 20px;
}
.mobile-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 4rem;
}
.timeline-item:before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}
.timeline-dot {
    position: absolute;
    left: 25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1e40af;
    top: 5px;
}
.timeline-year {
    display: inline-block;
    background: #1e40af;
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Service Badge */
.service-badge {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 8px;
}

/* Pagination Button */
.pagination-button {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* File Upload Styles */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}
.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}
.file-upload:hover .file-upload-label {
    border-color: #6366f1;
    background-color: #f0f5ff;
}
.file-name {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}
.file-upload-icon {
    color: #6b7280;
    font-size: 1.25rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
}
.form-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Button Styles */
.btn-primary {
    background-color: #1e40af;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}
.btn-secondary {
    background-color: transparent;
    color: #1e40af;
    padding: 12px 24px;
    border: 2px solid #1e40af;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background-color: #1e40af;
    color: white;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}
.slide-up {
    animation: slideUp 1s ease-in-out;
}
.slide-left {
    animation: slideLeft 1s ease-in-out;
}
.slide-right {
    animation: slideRight 1s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeft {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        width: 100%;
    }
    .mobile-search-input {
        padding: 12px 16px 12px 40px;
    }
    .timeline-item {
        padding-left: 60px;
    }
    .timeline-dot {
        left: 20px;
    }
    .timeline-item:before {
        left: 25px;
    }
}