/* Ethiopian Hospital ERP - Main Styles */

:root {
    /* Ethiopian Color Palette */
    --primary-green: #009639;
    --primary-yellow: #FFCD00;
    --primary-red: #DA020E;
    --primary-blue: #0F47AF;
    --primary-purple: #8B5CF6;
    --primary-orange: #F97316;
    
    /* Modern UI Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1a1a;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Shadows */
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Floating Action Button */
.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 180px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    color: var(--text-light);
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    z-index: 1000;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.floating-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.floating-action-btn:hover::before {
    left: 100%;
}

.floating-action-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(0, 150, 57, 0.8),
        0 0 70px rgba(0, 150, 57, 0.6),
        0 0 100px rgba(0, 150, 57, 0.4),
        0 0 120px rgba(0, 150, 57, 0.2);
    color: var(--text-light);
    text-decoration: none;
    animation: continuousGlow 1s ease-in-out infinite, floatingPulse 0.8s ease-in-out infinite alternate, breathingGlow 2s ease-in-out infinite;
}

.floating-action-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.floating-action-btn i {
    font-size: 16px;
}

/* Continuous Glowing Animation */
.floating-action-btn {
    animation: continuousGlow 3s ease-in-out infinite, floatingPulse 1.5s ease-in-out infinite alternate, breathingGlow 4s ease-in-out infinite;
}

@keyframes continuousGlow {
    0% {
        box-shadow:
            0 0 20px rgba(0, 150, 57, 0.4),
            0 0 30px rgba(0, 150, 57, 0.3),
            0 0 40px rgba(0, 150, 57, 0.2),
            0 0 60px rgba(0, 150, 57, 0.1);
    }
    25% {
        box-shadow:
            0 0 25px rgba(0, 150, 57, 0.5),
            0 0 35px rgba(0, 150, 57, 0.4),
            0 0 50px rgba(0, 150, 57, 0.3),
            0 0 70px rgba(0, 150, 57, 0.15);
    }
    50% {
        box-shadow:
            0 0 30px rgba(0, 150, 57, 0.6),
            0 0 40px rgba(0, 150, 57, 0.5),
            0 0 60px rgba(0, 150, 57, 0.4),
            0 0 80px rgba(0, 150, 57, 0.2);
    }
    75% {
        box-shadow:
            0 0 35px rgba(0, 150, 57, 0.7),
            0 0 45px rgba(0, 150, 57, 0.6),
            0 0 70px rgba(0, 150, 57, 0.5),
            0 0 90px rgba(0, 150, 57, 0.25);
    }
    100% {
        box-shadow:
            0 0 40px rgba(0, 150, 57, 0.8),
            0 0 50px rgba(0, 150, 57, 0.7),
            0 0 80px rgba(0, 150, 57, 0.6),
            0 0 100px rgba(0, 150, 57, 0.3);
    }
}

@keyframes floatingPulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.1);
    }
    100% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

@keyframes breathingGlow {
    0% {
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.15),
            0 0 30px rgba(0, 150, 57, 0.3),
            0 0 50px rgba(0, 150, 57, 0.2),
            0 0 80px rgba(0, 150, 57, 0.1);
    }
    25% {
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.15),
            0 0 40px rgba(0, 150, 57, 0.4),
            0 0 70px rgba(0, 150, 57, 0.3),
            0 0 100px rgba(0, 150, 57, 0.15);
    }
    50% {
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.15),
            0 0 50px rgba(0, 150, 57, 0.5),
            0 0 90px rgba(0, 150, 57, 0.4),
            0 0 120px rgba(0, 150, 57, 0.2);
    }
    75% {
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.15),
            0 0 40px rgba(0, 150, 57, 0.4),
            0 0 70px rgba(0, 150, 57, 0.3),
            0 0 100px rgba(0, 150, 57, 0.15);
    }
    100% {
        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.15),
            0 0 30px rgba(0, 150, 57, 0.3),
            0 0 50px rgba(0, 150, 57, 0.2),
            0 0 80px rgba(0, 150, 57, 0.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-action-btn {
        width: 160px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 12px;
    }

    .floating-action-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .floating-action-btn {
        width: 140px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 11px;
    }

    .floating-action-btn i {
        font-size: 12px;
    }
}

/* Accessibility */
.floating-action-btn:focus {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 2px;
}

.floating-action-btn:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .floating-action-btn {
        border: 2px solid white;
        background: var(--primary-green);
    }

    .floating-action-btn:focus {
        outline: 4px solid var(--primary-yellow);
        outline-offset: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating-action-btn {
        animation: none;
        transition: none;
    }

    .floating-action-btn::before {
        transition: none;
    }

    .floating-action-btn:hover {
        transform: none;
    }
}

/* Developer Page Additional Responsive Styles */
@media (max-width: 1200px) {
    .developer-hero {
        min-height: 90vh;
    }

    .section-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 992px) {
    .developer-hero {
        min-height: 80vh;
        text-align: center;
    }

    .profile-image {
        width: 180px;
        height: 180px;
        margin: 0 auto 2rem;
    }

    .section-card {
        padding: 1.5rem;
    }

    .experience-item {
        padding-left: 1rem;
    }

    .experience-item::before {
        left: -6px;
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 768px) {
    .developer-hero {
        min-height: 70vh;
        padding: 3rem 0;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .section-card {
        padding: 1.25rem;
        border-radius: 15px;
        margin-bottom: 1.25rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.3rem;
    }

    .back-btn {
        top: 20px;
        left: 20px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .developer-hero {
        min-height: 60vh;
        padding: 2rem 0;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .section-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .contact-card {
        padding: 1.25rem;
        border-radius: 15px;
    }

    .contact-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 25px;
    }

    .back-btn {
        top: 15px;
        left: 15px;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 25px;
    }

    .experience-item {
        padding-left: 0.75rem;
        border-left-width: 3px;
    }

    .experience-item::before {
        left: -5px;
        width: 8px;
        height: 8px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .developer-hero {
        min-height: 100vh;
        padding: 1rem 0;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .section-card {
        padding: 1rem;
    }
}

/* Print styles for developer page */
@media print {
    .floating-action-btn,
    .back-btn,
    .contact-btn {
        display: none !important;
    }

    .developer-hero {
        background: white !important;
        color: black !important;
        min-height: auto !important;
        padding: 1rem 0 !important;
    }

    .section-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }

    .contact-card {
        background: #f8f9fa !important;
        color: black !important;
    }
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

/* Animation Classes */
.animate-fade-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-right {
    animation: fadeInRight 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

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

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.hover-glow {
    transition: box-shadow var(--transition-medium);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 150, 57, 0.4);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

/* Cards */
.card-custom {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Ethiopian Flag Colors */
.text-ethiopia-green { color: var(--primary-green); }
.text-ethiopia-yellow { color: var(--primary-yellow); }
.text-ethiopia-red { color: var(--primary-red); }
.text-ethiopia-blue { color: var(--primary-blue); }
.text-ethiopia-purple { color: var(--primary-purple); }
.text-ethiopia-orange { color: var(--primary-orange); }

.bg-ethiopia-green { background-color: var(--primary-green); }
.bg-ethiopia-yellow { background-color: var(--primary-yellow); }
.bg-ethiopia-red { background-color: var(--primary-red); }
.bg-ethiopia-blue { background-color: var(--primary-blue); }
.bg-ethiopia-purple { background-color: var(--primary-purple); }
.bg-ethiopia-orange { background-color: var(--primary-orange); }

/* Responsive */
@media (max-width: 768px) {
    .glass {
        border-radius: 15px;
    }
    
    .btn-primary-custom {
        padding: 10px 25px;
    }
}
