/* Custom CSS for Dr. Khadija Portfolio */

/* Custom Properties */
:root {
    --primary-color: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --transition: all 0.3s ease;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Button Styles */
.btn-primary {
    @apply inline-flex items-center justify-center px-6 py-3 bg-primary hover:bg-blue-700 text-white font-semibold rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl;
}

.btn-secondary {
    @apply inline-flex items-center justify-center px-6 py-3 border-2 border-primary text-primary hover:bg-primary hover:text-white font-semibold rounded-lg transition-all duration-300 transform hover:scale-105;
}

/* Dark mode button adjustments */
.dark .btn-primary {
    @apply bg-blue-500 hover:bg-blue-600;
}

.dark .btn-secondary {
    @apply border-blue-400 text-blue-400 hover:bg-blue-400 hover:text-gray-900;
}

/* Navigation Link Styles */
.nav-link {
    @apply text-secondary dark:text-gray-300 hover:text-primary dark:hover:text-blue-400 font-medium transition-colors duration-300 relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.dark .nav-link::after {
    background-color: #3b82f6;
}

/* Container Utility */
.container {
    @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
}

/* Custom Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Styles */
.timeline-item {
    @apply relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

/* Card Hover Effects */
.service-card {
    @apply transform transition-all duration-300 hover:scale-105 hover:shadow-2xl;
}

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

::-webkit-scrollbar-track {
    @apply bg-gray-100 dark:bg-gray-800;
}

::-webkit-scrollbar-thumb {
    @apply bg-primary dark:bg-blue-500 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-blue-700 dark:bg-blue-400;
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-primary dark:focus:ring-blue-500 focus:border-transparent bg-white dark:bg-gray-700 text-gray-900 dark:text-white transition-all duration-300;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.1);
}

/* Mobile Menu Animation */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    @apply inline-block w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin;
}

/* Success Message */
.success-message {
    @apply bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200 p-4 rounded-lg border border-green-200 dark:border-green-700;
}

.error-message {
    @apply bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-200 p-4 rounded-lg border border-red-200 dark:border-red-700;
}

/* Skill Progress Bars */
.skill-bar {
    @apply w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2 overflow-hidden;
}

.skill-progress {
    @apply h-full bg-gradient-to-r from-primary to-accent transition-all duration-1000 ease-out;
}

/* Professional Image Placeholder */
.profile-placeholder {
    @apply relative overflow-hidden;
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Typography Enhancements */
.typography {
    @apply leading-relaxed;
}

.typography h1,
.typography h2,
.typography h3 {
    @apply font-bold;
}

.typography p {
    @apply mb-4 last:mb-0;
}

/* Quote Styles */
.quote {
    @apply italic text-lg text-center border-l-4 border-primary dark:border-blue-400 pl-6 py-4 bg-gray-50 dark:bg-gray-800 rounded-r-lg;
}

/* Badge Styles */
.badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium;
}

.badge-primary {
    @apply bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200;
}

.badge-secondary {
    @apply bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-200;
}

.badge-success {
    @apply bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200;
}

/* Section Dividers */
.section-divider {
    @apply w-24 h-1 bg-gradient-to-r from-primary to-accent mx-auto my-8 rounded-full;
}

/* Responsive Images */
.responsive-img {
    @apply w-full h-auto max-w-full block;
}

/* Focus Styles for Accessibility */
.focus-visible:focus {
    @apply outline-none ring-2 ring-primary dark:ring-blue-400 ring-offset-2 ring-offset-white dark:ring-offset-gray-900;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        @apply bg-black text-white border-2 border-black;
    }
    
    .btn-secondary {
        @apply bg-white text-black border-2 border-black;
    }
    
    .nav-link {
        @apply text-black;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Custom Dark Mode Enhancements */
.dark {
    color-scheme: dark;
}

.dark body {
    @apply bg-gray-900 text-gray-100;
}

.dark .bg-white {
    @apply bg-gray-800;
}

.dark .bg-gray-50 {
    @apply bg-gray-800;
}

.dark .text-gray-900 {
    @apply text-gray-100;
}

.dark .border-gray-200 {
    @apply border-gray-700;
}

/* WhatsApp Button Styles */
#whatsapp-btn {
    @apply opacity-0 pointer-events-none;
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

/* Ensure consistent positioning on all screen sizes */
#whatsapp-btn {
    right: 1.6rem !important;
    bottom: 2rem !important;
}

/* Mobile adjustments for floating buttons */
@media (max-width: 768px) {
    #whatsapp-btn {
        @apply w-12 h-12;
        right: 1rem !important;
        bottom: 1rem !important;
    }
    
    .scroll-to-top-mobile {
        @apply w-12 h-12;
        right: 1rem !important;
        bottom: 5rem !important; /* 80px above WhatsApp button - no overlap */
    }
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}

/* Custom Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(30, 64, 175, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Professional Card Styles */
.professional-card {
    @apply bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-2xl hover:transform hover:scale-105;
}

/* Medical Theme Colors */
.medical-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.medical-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.medical-accent {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}